daltonize: Dichromat vision simulation for colorpalettes

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/LSD.color.r

Description

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

Usage

1
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

Author(s)

Bjoern Schwalb

References

http://www.daltonize.org

See Also

disco, colorpalette, demotour

Examples

1
2
daltonize("heat",cvd = "d")
daltonize("colorblind",cvd = "p")

LSD documentation built on July 2, 2020, 4:14 a.m.

Related to daltonize in LSD...