Simulates how an ltc palette appears to viewers with the three
main types of colour vision deficiency (colour blindness) and shows the
result as rows of swatches. Useful for checking whether a palette stays
distinguishable for colour-blind readers.
The simulation uses colorspace: deuteranopia (green-weak, the most common), protanopia (red-weak) and tritanopia (blue-weak).
Arguments
- name
Character or unquoted palette name (e.g.
doraor"dora"), or a character vector of hex colours.- severity
Numeric in
[0, 1]. Strength of the deficiency, where1is the full dichromatic simulation (the default) and lower values give milder anomalous-trichromacy simulations.- labels
Logical. If
TRUE(default) the hex codes are printed on the swatches.

