barplot to show probability of assigned topics in clusters

hist_cluster_topic(gammaDF, clusters)

Arguments

gammaDF

cluster~topic probability data.frame

clusters

clusters to show

Value

ggplot object

Examples

if (FALSE) { ldaOut <- SeuratObj@misc$ldaOut gammaDF <- tidytext::tidy(ldaOut, matrix = "gamma") hist_cluster_topic(gammaDF, clusters=head(Seurat::Idents(SeuratObj))) }