R/topicModel_utils.R
cosine_network_cluster.Rd
Network of cosine similarity between clusters, calculated by cluster~topic probability matrix. Width of edge shows cosine similarity between clusters, node pie shows topic probability distribution of each cluster.
cosine_network_cluster( ldaOut, layout = "circle", cos_sim_thresh = 0.2, SEED = 123, radius = 0.12, width_range = c(0.1, 0.8), text_size = 3 )
ldaOut | topic modeling result |
---|---|
layout | network layout |
cos_sim_thresh | only shows edge of cosine similarity greater than specific threshold |
SEED | seed |
radius | node pie radius |
width_range | range of width of edges |
text_size | size of labels |
ggplot object