Skip to contents

The figure families in this package and in the projects that use it are read side by side, so a colour has to mean the same thing in all of them. This is that vocabulary, keyed by ROLE rather than by figure, so a project drawing its own variant can match without copying hex values – and so changing one is a single edit rather than a search.

Usage

growth_plot_palette(...)

Arguments

...

Optional named overrides, e.g. candidate = "darkorange". Names must be existing roles; anything else is an error rather than a silently ignored typo.

Value

A named character vector of colours.

Details

Colours only. Linetypes have their own scale (scale_linetype_growth_reference()), and the review panel's per-series key spec is positional and specific to that one figure, so folding all three into a single table would couple things that change for different reasons.

Returns a NAMED CHARACTER VECTOR, which is what ggplot2::scale_colour_manual(values = ) and friends take directly.

Roles: current, candidate, plots, faint, summary, reference, window, key_outline.

Examples

growth_plot_palette()[["summary"]]
#> [1] "steelblue4"
growth_plot_palette(candidate = "darkorange")[["candidate"]]
#> [1] "darkorange"