| fac2palette | R Documentation | 
Encodes logic of how to handle named-vector and functional palettes. Used primarily within embeddingGroupPlot()
fac2palette(groups, palette, unclassified.cell.color = "gray50")
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')  | 
vector or palette
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.