simulate_colorblind_hex: Simulate colorblindness for a color

Description Usage Arguments Examples

View source: R/SimulateColorBlind.R

Description

Generate a hex color simulating colorblindness. Algorithm from http://www.daltonize.org/

Usage

1

Arguments

hex_str

The hex color string, e.g., '#FF0000'

cvd

A vector (3x3–9 values) specifying the color vision deficiency transform matrix

Examples

1
2
3
4
simulate_colorblind_green(
 c("#005000","#008600","#00BB00"),
 border = "light gray"
)

muppetjones/remcolor documentation built on May 22, 2017, 4:21 p.m.