Skip to contents

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.

Value

A ggplot2 scale.

Examples

library(ggplot2)
ggplot(mtcars, aes(wt, mpg, colour = factor(cyl))) +
  geom_point() + scale_colour_cpt() + theme_ggcpt()