inst/doc/intro-to-colorblindcheck.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## -----------------------------------------------------------------------------
library(colorblindcheck)
rainbow_pal = rainbow(n = 7)
rainbow_pal

## ---- fig.width=6-------------------------------------------------------------
palette_check(rainbow_pal, plot = TRUE)

## -----------------------------------------------------------------------------
# normal
palette_dist(rainbow_pal)
# deuteranopia
palette_dist(rainbow_pal, cvd = "pro")

Try the colorblindcheck package in your browser

Any scripts or data that you put into this service are public.

colorblindcheck documentation built on May 31, 2023, 8:08 p.m.