Learn R Programming

colorblindcheck (version 1.0.4)

palette_plot: 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, show_hex = FALSE)

Value

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

Arguments

x

A vector of hexadecimal color descriptions

severity

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

show_hex

whether to display hexadecimal color descriptions in plot

See Also

palette_bivariate_plot

Examples

Run this code
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"))
palette_plot(x = rcartocolor::carto_pal(11, "Vivid"), show_hex = TRUE)

Run the code above in your browser using DataLab