colorblind: Simulate colorblindness

Description Usage Arguments Value

View source: R/converters.R

Description

From color palette (character vector of hex RGB or RGBA color codes), simulates the palette as it would appear under three common forms of colorblindness: deuteranopia, protanopia and tritanopia. Returns a list of palettes. NA's in palette are preserved.

Usage

1

Arguments

palette

Character vector. A palette (vector of hex RGB or RGBA colors).

Value

List of four hex color palettes: $normal, $deuteranopia, $protanopia, $tritanopia


allopole/datacolor documentation built on May 4, 2019, 6:39 p.m.