| colorblind_pal {ggthemes} | R Documentation |
An eight-color colorblind safe qualitative discrete palette.
colorblind_pal() scale_colour_colorblind(...) scale_color_colorblind(...) scale_fill_colorblind(...)
... |
Other arguments passed on to |
Chang, W. "Cookbook for R"
http://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))
p <- ggplot(mtcars) + geom_point(aes(x = wt, y = mpg,
colour = factor(gear))) + facet_wrap(~am)
p + theme_igray() + scale_colour_colorblind()