Description Usage Arguments Details Value
ColorChart()
creates a visual reference of a color palette as it
would appear to trichromat viewers and to viewers with three types of
color blindness:
deuteranopia (red-green color blindness; 1% of males),
protanopia (red-green color blindness; 1% of males), and
tritanopia (blue-yellow color blindness; < 1% of males and females).
1 | ColorChart(palette = NULL, colorblind = TRUE, chipsize = 25)
|
palette |
|
colorblind |
Logical that determines whether simulations of
color blindness (deuteranopia, protanopia, tritanopia) are shown
( |
chipsize |
Numeric that is passed to |
If palette
is NULL
, then a color chart for the six Callier
Center colors (solar orange, space blue, callier gray, spark orange,
stratos blue, sky blue) is created, and the x-axis is labeled with the
color names rather than their hexadecimal codes.
The dichromat
package is used to simulate color blindness.
A ggplot
object with the following aesthetics:
colors are ordered as they occur in palette
and mapped to the
x-dimension, with the x-axis labeled by hexadecimal codes;
vision is mapped to the y-dimension, with the y-axis labeled by type of
vision (trichromat, deuteranopia, protanopia, tritanopia).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.