Skip to contents

Palette discovery and access

Retrieve registered colors, metadata, and scales-compatible closures.

sc_palette()
Retrieve colors from a registered palette
sc_pal()
Create a scales-compatible scChromatic palette
sc_palette_names()
List registered palette IDs
sc_palette_info()
Inspect palette metadata and provenance
sc_palette_generate()
Generate a deterministic qualitative color sequence

Persistent mappings

Keep labels stable across subsets, reorderings, and related lineages.

sc_color_map()
Create a persistent label-to-color mapping
sc_relationship_from_knn()
Derive label relationships from coordinate neighborhoods
sc_relationship_map()
Optimize a persistent color map from label relationships
update_sc_color_map()
Update a persistent color map
as_named_colors()
Extract named colors from a persistent map
sc_color_map_plot()
Plot a persistent color map
write_sc_color_map()
Write a persistent color map
read_sc_color_map()
Read a persistent color map
sc_hierarchy_map()
Create or extend a hierarchy-aware color map
sc_highlight_map()
Create a focus-versus-other color map

ggplot2 scales

scale_color_sc_d() scale_colour_sc_d() scale_fill_sc_d()
Discrete scChromatic color scale
scale_color_sc_c() scale_colour_sc_c() scale_fill_sc_c()
Continuous scChromatic color scale
scale_color_sc_map() scale_colour_sc_map() scale_fill_sc_map()
Manual ggplot2 scales from a persistent color map

Diagnostics and recommendations

sc_palette_audit()
Audit palette separation and background contrast
sc_palette_recommend()
Recommend palettes from transparent registry rules
sc_palette_plot()
Plot palette swatches or dense point previews
sc_redundant_encoding()
Allocate redundant shapes or patterns for confusable colors

Example data

sc_example
Synthetic PBMC-like single-cell example data