Returns one of the curated colour vectors that every chart in the
package draws from. Useful when extending an autoplot() chart
with your own layers and you want them to match the rest of the
package's visual identity.
Usage
shewhart_palette(
name = c("phase_seq", "family", "signal", "neutral"),
n = NULL
)Arguments
- name
One of
"phase_seq","family","signal","neutral". See Details for the contents and intended use of each.- n
Optional integer. Number of colours to return. If
NULL(default) the full palette is returned. Ifnexceeds the palette length, a smooth ramp (grDevices::colorRampPalette()) is interpolated.
Details
phase_seqSequential palette for time-ordered phase indices in regression / multi-phase charts. Cool blues at the baseline, warming through neutral to terracotta as phase index grows. Avoids saturated red (reserved for
signal).familyNamed categorical palette for the four chart families: variables, attributes, memory-based, multivariate. Identical to the colours used in the architecture diagram.
signalTwo-colour palette:
in_control(deep blue) andout_of_control(firebrick). Used to colour violation points on every chart so the alarm signal is consistent.neutralStructural greys used by
shewhart_theme()for backgrounds, gridlines and text colour.