colorblind: Colorblind Color Palette (Discrete) and Scales

Description Usage Arguments References See Also Examples

Description

An eight-color colorblind safe qualitative discrete palette.

Usage

1
2
3
4
5
6
7

Arguments

...

Other arguments passed on to discrete_scale to control name, limits, breaks, labels and so forth.

References

Chang, W. "Cookbook for R"

http://jfly.iam.u-tokyo.ac.jp/color

See Also

The dichromat package, dichromat_pal, and scale_color_tableau for other colorblind palettes.

Examples

1
2
3
4
5
6
7
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()

Example output



ggthemes documentation built on May 7, 2018, 9:05 a.m.