View source: R/TopicHeatmaps.R
HeatmapSortByTopic | R Documentation |
This function produces a Heatmap showing how much each cell lies within each topic. The cells in the Heatmap are sorted based on their scores in a given topic.
HeatmapSortByTopic(
Object,
topics,
sortByTopic = "Topic_1",
AnnoVector,
AnnoName,
clusterTopics = F
)
Object |
Seurat object containing the data the model was created with. |
topics |
document-topic matrix |
sortByTopic |
topic to be sorted by |
AnnoVector |
Vector of cell annotations |
AnnoName |
Name of cell annotation |
clusterTopics |
Logical whether to cluster topics or not |
pheatmap object
HeatmapSortByTopic(SeuratObj, DocTopMat, "Topic_16", SeuratObj$annotation, "NameOfAnnotation")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.