Learn R Programming

colorblindcheck (version 1.0.4)

palette_bivariate_plot: Plot Bivariate Palette And Its Color Vision Deficiencies

Description

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

Usage

palette_bivariate_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_plot

Examples

Run this code
palette_bivariate_plot(x = rcartocolor::carto_pal(4, "Sunset"))
palette_bivariate_plot(x = rcartocolor::carto_pal(4, "Sunset"), show_hex = TRUE)
# Technically, "Sunset" from {rcartocolor} is not a bivariate palette,
# an example using an actual bivariate palette would be the following:
# palette_bivariate_plot(x = pals::brewer.seqseq1())

Run the code above in your browser using DataLab