colorschemes {dichromat}R Documentation

Color schemes

Description

17 color schemes suitable for people with deficient or anomalous red-green vision.

Usage

colorschemes

Format

Author(s)

R code by Scott Waichler <scott.waichler@pnl.gov>

Source

Light A. and P.J. Bartlein, 2004. "The end of the rainbow? Color schemes for improved data graphics," EOS Transactions of the American Geophysical Union 85(40):385.

References

http://geography.uoregon.edu/datagraphics/color_scales.htm

Examples

opar <- par(mar=c(1,2,1,1))
layout(matrix(1:6,ncol=1))
image(1:10,1,matrix(1:10, ncol=1),col=colorschemes$BrowntoBlue.10,
    main="Brown to Blue (10)", axes=FALSE)
image(1:100,1,matrix(1:100 ,ncol=1),col=colorRampPalette(colorschemes$BrowntoBlue.10,space="Lab")(100),
    main="Brown to Blue Ramp", axes=FALSE)
image(1:10,1,matrix(1:10, ncol=1),col=dichromat(colorschemes$BrowntoBlue.10),
   main="Brown to Blue (10) -- deuteranopia", axes=FALSE)
image(1:12,1,matrix(1:12, ncol=1),col=colorschemes$Categorical.12,main="Categorical (12)", axes=FALSE)
image(1:12,1,matrix(1:12, ncol=1),col=dichromat(colorschemes$Categorical.12),
   main="Categorical (12) -- deuteranopia", axes=FALSE)
image(1:12,1,matrix(1:12,ncol=1),col=dichromat(colorschemes$Categorical.12, "protan"),
   main="Categorical (12) -- protanopia", axes=FALSE)
par(opar)

[Package dichromat version 1.2-3 Index]