Fixed qualitative palettes are truncated but never interpolated. Use
extend = "generate" to deterministically append colors while preserving
all selected registered colors. Continuous palettes preserve their registered
anchors at the native length and otherwise interpolate in Lab space. The
cyclic d3_rainbow compatibility palette is sampled directly at i / n, so
its colors intentionally change when n changes.
Arguments
- palette
Palette ID. See
sc_palette_names().- n
Number of colors; defaults to the registered palette capacity.
- alpha
Opacity in
(0, 1].- reverse
Reverse the final color sequence.
- selection
Use audited
"priority"order or exact upstream"source"order.- extend
For qualitative oversubscription, error or generate colors.
- background
Background used by deterministic extension.
- keep_names
Preserve registered color names when possible.