
Dichromat vision simulation and enhancement according to http://www.daltonize.org.
daltonize(colpal, cvd = "p", show = TRUE)
a character vector containing R built-in color names or a name of a LSD
colorpalette as a character string (see disco() or disco
).
character string implying the type of color vision deficiency ("p" for protanope, "d" for deuteranope or "t" for tritanope).
logical: if TRUE
(by default), the resulting colorpalettes are depicted in an R plot.
daltonize
returns a list, where each entry is a vector containing R built-in colors in hexadecimal representation:
vector of simulated colors
vector of enhanced colors
# NOT RUN {
daltonize("heat",cvd = "d")
daltonize("colorblind",cvd = "p")
# }
Run the code above in your browser using DataLab