R/topicModel_utils.R
hist_cluster_topic.Rd
barplot to show probability of assigned topics in clusters
hist_cluster_topic(gammaDF, clusters)
cluster~topic probability data.frame
clusters to show
ggplot object
if (FALSE) { ldaOut <- SeuratObj@misc$ldaOut gammaDF <- tidytext::tidy(ldaOut, matrix = "gamma") hist_cluster_topic(gammaDF, clusters=head(Seurat::Idents(SeuratObj))) }