View source: R/visualization.R
ColorDimSplit | R Documentation |
Returns a DimPlot colored based on whether the cells fall in clusters to the left or to the right of a node split in the cluster tree.
ColorDimSplit( object, node, left.color = "red", right.color = "blue", other.color = "grey50", ... )
object |
Seurat object |
node |
Node in cluster tree on which to base the split |
left.color |
Color for the left side of the split |
right.color |
Color for the right side of the split |
other.color |
Color for all other cells |
... |
Arguments passed on to
|
Returns a DimPlot
DimPlot
if (requireNamespace("ape", quietly = TRUE)) { data("pbmc_small") pbmc_small <- BuildClusterTree(object = pbmc_small, verbose = FALSE) PlotClusterTree(pbmc_small) ColorDimSplit(pbmc_small, node = 5) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.