Learn R Programming

colorBlindness (version 0.1.6)

displayColors: display colors

Description

Display the given colors

Usage

displayColors(col, ...)

displayAllColors(col, types = c("deuteranope", "protanope", "desaturate"), ...)

Arguments

col

color set to display

...

parameters could be used by geom_tile.

types

the type of color vision deficiency.

Value

an ggplot object

Examples

Run this code
# NOT RUN {
displayColors(safeColors)
displayColors(paletteMartin)
displayAllColors(safeColors, color="white")
displayAllColors(paletteMartin, color="white")

# }

Run the code above in your browser using DataLab