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

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
#> [1] "#FF0000" "#FFDB00" "#49FF00" "#00FF92" "#0092FF" "#4900FF" "#FF00DB"
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"))