Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fac2palette

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

function, which 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


sccore

Core Utilities for Single-Cell RNA-Seq

v0.1.3
GPL-3
Authors
Viktor Petukhov [aut], Ramus Rydbirk [aut], Peter Kharchenko [aut], Evan Biederstedt [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.