HH (version 3.1-19)

col3x2: col3x2 color dataset

Description

col3x2 color dataset.

Usage

data("col3x2")

Arguments

format

The format is: chr [1:6] "#1B9E77" "#D95F02" "#7570B3" "#66C2A5" "#FC8D62" "#8DA0CB"

Details

3x2 color scheme. These colors look like a 3x2 color array when run through the vischeck simulator to see how they look for the three most common color vision deficiencies: Deuteranope, Protanope, Tritanope.

References

About 10% of the population have color deficient vision. Your job is make your graphs legible to everyone. Download ImageJ from http://rsb.info.nih.gov/ij/ and VischeckJ from http://vischeck.com and follow the instructions in those sites. This program will allow you to simulate color deficient vision on your computer.

On my Mac, I need to doubleclick ij.jar to open the program. Then open the "Vischeck Panel" on the Plugins menu and navigate to a png file with the "File Open" menu. Click on each of the three types of color deficiency.

Examples

Run this code
data(col3x2)
library(RColorBrewer)
library(grid)
library(lattice)
col3x2 <- c(brewer.pal(n=3, "Dark2"), brewer.pal(n=3, "Set2"))
save(col3x2, file="col3x2.rda")
##
grid.newpage()
draw.key(list(text=list(c("Dark2", "Set2")),
              rectangles=list(col=col3x2[c(1,4,2,5,3,6)],
                              cex=1.5, size=8, height=.7, border=FALSE),
              columns=3,
              between=1,
              padding.text=8),
         draw=TRUE)

Run the code above in your browser using DataCamp Workspace