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
)

Arguments

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

Value

ggplot object

Examples

if (FALSE) { ldaOut <- SeuratObj@misc$ldaOut cosine_network_cluster(ldaOut, layout="circle", cos_sim_thresh=0.2, SEED=123, radius=0.12, width_range=c(0.1, 0.8)) cosine_network_cluster(ldaOut, layout="fr", cos_sim_thresh=0.2, SEED=123, radius=0.12, width_range=c(0.1, 0.8)) }