getDiscretePalette: Safely generate a discrete color palette (NA).

View source: R/Seurat.Utils.Visualization.R

getDiscretePaletteR Documentation

Safely generate a discrete color palette (NA).

Description

Safe wrapper around Seurat's DiscretePalette(), which returns NA's if too many categories are requested

Usage

getDiscretePalette()

Arguments

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: FALSE.

Examples

## Not run: 
if (interactive()) {
  getDiscretePalette()
}

## End(Not run)


vertesy/Seurat.utils documentation built on Dec. 4, 2024, 5:20 p.m.