| ltc_cvd | R Documentation |
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).
ltc_cvd(name, severity = 1, labels = TRUE)
name |
Character or unquoted palette name (e.g. |
severity |
Numeric in |
labels |
Logical. If |
A ggplot2 object: one row of swatches per vision type (Normal, Deuteranopia, Protanopia, Tritanopia).
ltc_cvd(dora)
ltc_cvd("expevo", severity = 0.6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.