Skip to contents

check_color_blindness() will showcase the effect of the three kinds of color vision deficiency, Deuteranopia, Protanopia, and Tritanopia, at the same time side by side in a plot.

Usage

check_color_blindness(col)

Arguments

col

A colors object (see color()) or a vector of any of the three kinds of R color specifications, i.e., either a color name (as listed by grDevices::colors()), a hexadecimal string (see col2rgb()), or a positive integer i meaning grDevices::palette()[i].

Value

Invisibly col.

Examples

check_color_blindness(rainbow(10))


check_color_blindness(terrain.colors(10))