daltonize {LSD} | R Documentation |
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 |
cvd |
character string implying the type of color vision deficiency ("p" for protanope, "d" for deuteranope or "t" for tritanope). |
show |
logical: if |
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 |
Author(s)
Bjoern Schwalb
References
See Also
Examples
daltonize("heat",cvd = "d")
daltonize("colorblind",cvd = "p")
[Package LSD version 4.1-0 Index]