Learn R Programming

LSD (version 4.0-0)

daltonize: Dichromat vision simulation for colorpalettes

Description

Dichromat vision simulation and enhancement according to http://www.daltonize.org.

Usage

daltonize(colpal, cvd = "p", show = TRUE)

Arguments

colpal

a character vector containing R built-in color names or a name of a LSD colorpalette as a character string (see disco() or disco).

cvd

character string implying the type of color vision deficiency ("p" for protanope, "d" for deuteranope or "t" for tritanope).

show

logical: if TRUE (by default), the resulting colorpalettes are depicted in an R plot.

Value

daltonize returns a list, where each entry is a vector containing R built-in colors in hexadecimal representation:

simulated

vector of simulated colors

enhanced

vector of enhanced colors

References

http://www.daltonize.org

See Also

disco, colorpalette, demotour

Examples

Run this code
# NOT RUN {
daltonize("heat",cvd = "d")
daltonize("colorblind",cvd = "p")
# }

Run the code above in your browser using DataLab