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.
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")
The package is available under the General Public License version 2.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.