ColorChart: Print a Color Chart for a Palette

Description Usage Arguments Details Value

Description

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).

Usage

1
ColorChart(palette = NULL, colorblind = TRUE, chipsize = 25)

Arguments

palette

NULL (default) or a character vector, whose entries are hexadecimal codes for values in the RGB (red-green-blue) color model.

colorblind

Logical that determines whether simulations of color blindness (deuteranopia, protanopia, tritanopia) are shown (TRUE) or not (FALSE)) along with the trichromat color palette. Default is TRUE.

chipsize

Numeric that is passed to geom_point(size = ). Determines the size of the color chips in the chart. Default is 25.

Details

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.

Value

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).


patrickreidy/callierr documentation built on May 24, 2019, 8:22 p.m.