The discrete palette used wherever this package colours by method, series or class. It is the Okabe-Ito qualitative palette, which stays distinguishable under deuteranopia, protanopia and tritanopia, extended by recycling with a linetype change so that colour is never the only channel carrying the distinction.
Usage
scale_colour_cpt(..., na.value = "grey70")
scale_color_cpt(..., na.value = "grey70")
scale_fill_cpt(..., na.value = "grey70")
scale_linetype_cpt(...)Arguments
- ...
Passed to
ggplot2::discrete_scale().- na.value
Colour for missing values.
See also
theme_ggcpt(),
scale_fill_cpt_label().
Other accessibility scales:
scale_fill_cpt_label(),
theme_ggcpt()
Examples
library(ggplot2)
ggplot(mtcars, aes(wt, mpg, colour = factor(cyl))) +
geom_point() + scale_colour_cpt() + theme_ggcpt()
