Colors for categorical groups in a manuscript, poster or light-background
slide figure: the Okabe-Ito colors, ordered for a white background, with
every one clearing 3:1 contrast against white. Hand it to a manual scale,
scale_color_manual(values = hv_palette()).
Details
This is the categorical half of the house color rule. Ordered and diverging
scales take ColorBrewer "RdBu" or "PuOr" through
ggplot2::scale_color_brewer(), and sequential scales take "Blues".
Avoid "Set1" and "RdYlGn": their red against green fails for a reader
with deuteranopia.
The colors are those of hv_ppt_palette("light"), under a name that does
not tie a manuscript figure to slides. For a dark slide, use
hv_ppt_palette("dark"). Six colors are supplied, and asking for more is an
error rather than a silently recycled palette.
See also
hv_ppt_palette() for the slide orderings,
hv_role_palette() when levels carry a role such as event or censored.