Description Usage Arguments Value See Also Examples
View source: R/scAlignSeuratWrapper.R
Creates a list of unique color values used for plotting
1 | SelectColors(seurat.obj, gradient = FALSE, value = "celltype")
|
seurat.obj |
A singular preprocessed Seurat object |
gradient |
Setting to TRUE will use a sequence of hsv colors instead of 20 unique colors, useful for comparisons of more than 20 cell types. |
value |
The Seurat metadata slot to generate colors for. Defaults to "celltype". |
A named vector of unique hexedecimal color values, either generated from a preselected vector of 20 unique colors, or from a sequence of colors in hsv colorspace.
1 2 3 4 5 6 | DimPlot(object = seurat.obj,
reduction = "tsne",
cols = SelectColors(seurat.obj),
group.by = "celltype",
label = TRUE,
repel = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.