get_palette: Get a pallete for cluster plots

View source: R/plot_scseq.R

get_paletteR Documentation

Get a pallete for cluster plots

Description

Get a pallete for cluster plots

Usage

get_palette(levs, dark = FALSE, with_all = FALSE)

Arguments

levs

Character vector of levels to get colour pallete for.

dark

Use dark palettes? Default is FALSE.

with_all

if TRUE, adds an additional level to get colors for. Default is FALSE

Value

Character vector with colour codes of length(levs).

Examples

levs <- c('CD14 Mono', 'CD16 Mono', 'NK Cells')
get_palette(levs)


hms-dbmi/drugseqr documentation built on June 24, 2024, 7:03 a.m.