palette_plot {colorblindcheck}R Documentation

Plot Palette And Its Color Vision Deficiencies

Description

Plot of the original input palette and simulations of color vision deficiencies - deuteranopia, protanopia, and tritanopia.

Usage

palette_plot(x, severity = 1)

Arguments

x

A vector of hexadecimal color descriptions

severity

Severity of the color vision defect, a number between 0 and 1

Value

A plot with the original input palette and simulations of color vision deficiencies - deuteranopia, protanopia, and tritanopia

See Also

palette_bivariate_plot

Examples

rainbow_pal = rainbow(n = 7)
rainbow_pal
palette_plot(rainbow_pal)

palette_plot(x = rcartocolor::carto_pal(7, "Sunset"))
palette_plot(x = rcartocolor::carto_pal(11, "Safe"))
palette_plot(x = rcartocolor::carto_pal(7, "Earth"))
palette_plot(x = rcartocolor::carto_pal(11, "Vivid"))

[Package colorblindcheck version 1.0.2 Index]