Color Schemes for Dichromats

Collapse red-green or green-blue distinctions to simulate the effects of different types of color-blindness based on the work of Françoise Viénot and co-authors, especially and . More recent functions for simulating color vision deficiency are provided in the 'colorspace' package.


Simulating the Effects of Color Blindness in R

Overview

The R package dichromat provides:

  • Simulation of the effects of color blindness via function dichromat() for two types of red-green color blindness (type = "deutan" or "protan") and green-blue color blindness (type = "tritan").

  • Data dalton from the work of Françoise Viénot and co-authors, underlying the dichromat() function. It provides a 256-color palette as it would appear with normal, protanope, deuteranope, and tritanope vision.

  • A colorschemes list containing 17 color vectors suitable for people with deficient or anomalous red-green vision.

⚠️ Important note: The R package colorspace provides better functions for simulating color vision deficiency: simulate_cvd(), deutan(), protan(), tritan(). More modern robust color palettes are available in hcl.colors() and palette.colors() in base R as well as further tools in colorspace.

Installation

The stable version of dichromat is available on CRAN:

install.packages("dichromat")

The latest development version can be installed from R-universe:

install.packages("dichromat", repos = "https://zeileis.R-universe.dev")

License

The package is available under the General Public License version 2.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("dichromat")

2.0-1 by Achim Zeileis, 3 months ago


https://zeileis.codeberg.page/dichromat/


Report a bug at https://codeberg.org/zeileis/dichromat/issues


Browse source code at https://github.com/cran/dichromat


Authors: Thomas Lumley [aut] , Achim Zeileis [aut, cre] (ORCID: , Kenneth Knoblauch [ctb] (ORCID: , Scott Waichler [ctb]


Documentation:   PDF Manual  


GPL-2 license


Imports stats, grDevices


Imported by autoGO, pals, ternvis.

Suggested by eSDM, inlcolor, jumble, rasterVis, reems, scales, viridis.


See at CRAN