fac2palette: Encodes logic of how to handle named-vector and functional...

View source: R/plots.R

fac2paletteR Documentation

Encodes logic of how to handle named-vector and functional palettes. Used primarily within embeddingGroupPlot()

Description

Encodes logic of how to handle named-vector and functional palettes. Used primarily within embeddingGroupPlot()

Usage

fac2palette(groups, palette, unclassified.cell.color = "gray50")

Arguments

groups

vector of cluster labels, names contain cell names

palette

vector or list or function (default=NULL). Accepts number of colors and return list of colors (i.e. see 'colorRampPalette')

unclassified.cell.color

Color for unclassified cells (default='gray50')

Value

vector or palette


kharchenkolab/sccore documentation built on Feb. 26, 2024, 12:41 a.m.