View source: R/Seurat.Utils.Visualization.R
getClusterColors | R Documentation |
Regenerate and optionally displays the color scheme associated with the clusters in a Seurat object as defined by a specified identity column.
getClusterColors(
obj = combined.obj,
use_new_palettes = TRUE,
palette = c("alphabet", "alphabet2", "glasbey", "polychrome", "stepped")[3],
ident = GetClusteringRuns()[1],
show = TRUE
)
obj |
Seurat object containing clustering information. |
use_new_palettes |
Logical indicating whether to use custom palettes defined in
|
palette |
Name of the color palette to use if |
ident |
Clustering identity to use for coloring. Retrieved from the first entry
of |
show |
If TRUE, displays a plot showing the color mapping for each cluster. Default: |
## Not run:
if (interactive()) {
getClusterColors(obj = combined.obj, ident = GetClusteringRuns(combined.obj)[1])
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.