hrf_palette() returns the colours used by every plotting function in
fmrihrf, so figures made with plot_hrfs(), plot_regressors(), and the
plot() methods share one visual language.
Usage
hrf_palette(n = NULL, type = c("categorical", "ordered"))Details
Two palette types are provided:
"categorical": up to six distinct hues for unordered series (conditions, HRF families). Every colour has at least 3:1 contrast against both white and near-black backgrounds, and the first four stay distinguishable under simulated deuteranopia, protanopia, and tritanopia. When more than six colours are requested the ordered palette is used instead."ordered": a hue ramp (violet, blue, teal, green, ochre) for series with a natural order, such as the functions of a basis set, lags, or event durations. Lightness is held in the same mid range, so the ramp is readable on light and dark backgrounds. Brick red, the first categorical colour, is left out of the ramp so that it keeps one meaning.
See also
scale_colour_hrf() for the matching ggplot2 scales.