View source: R/Seurat.Utils.Visualization.R
getDiscretePalette | R Documentation |
Safe wrapper around Seurat's DiscretePalette(), which returns NA's if too many categories are requested
getDiscretePalette()
ident.used |
The identity column used for determining the number of clusters, Default: GetClusteringRuns()1 |
obj |
Seurat object, Default: combined.obj |
palette.used |
The name of the palette to use, Default: c("alphabet", "alphabet2", "glasbey", "polychrome", "stepped")1 |
show.colors |
Whether to display the colors in the palette, Default: |
## Not run:
if (interactive()) {
getDiscretePalette()
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.