| colorblind_pal | R Documentation |
An eight-color colorblind safe qualitative discrete palette.
'r lifecycle::badge("deprecated")'
colorblind_pal(black = TRUE)
colourblind_pal(black = TRUE)
scale_colour_colourblind(black = TRUE, ...)
scale_colour_colorblind(black = TRUE, ...)
scale_color_colorblind(black = TRUE, ...)
scale_fill_colorblind(black = TRUE, ...)
scale_fill_colourblind(black = TRUE, ...)
black |
If |
... |
Arguments passed on to
|
Chang, W. "Cookbook for R"
https://jfly.iam.u-tokyo.ac.jp/color
The dichromat package, dichromat_pal(),
and scale_color_tableau() for other colorblind palettes.
library("ggplot2")
library("scales")
show_col(colorblind_pal()(8))
show_col(colorblind_pal(black = FALSE)(7))
p <- ggplot(mtcars) +
geom_point(aes(
x = wt,
y = mpg,
colour = factor(gear)
)) +
facet_wrap(~am)
p + theme_igray() + scale_colour_colourblind()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.