Categorical palettes that meet WCAG 1.4.1 (Use of Color) by being distinguishable to viewers with color vision differences.
Arguments
- palette
One of
"dark2_8"(default),"set2_8","paired_12","aaa_5". Seea11y_palette_list().- ...
Passed to
ggplot2::discrete_scale.
Examples
if (requireNamespace("ggplot2", quietly = TRUE)) {
library(ggplot2)
ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) +
geom_point() + scale_color_a11y()
}