pth_data_cvd: Color data in CVD context

View source: R/cvd.R

pth_data_cvdR Documentation

Color data in CVD context

Description

Generate versions of colors using color-vision deficiency simulation.

Usage

pth_data_cvd(x, cvd = pth_cvd_grid(), ...)

## Default S3 method:
pth_data_cvd(x, cvd = pth_cvd_grid(), ...)

## S3 method for class 'character'
pth_data_cvd(x, cvd = pth_cvd_grid(), transformer = pth_to_cieluv, ...)

## S3 method for class 'pth_hex'
pth_data_cvd(x, cvd = pth_cvd_grid(), transformer = pth_to_cieluv, ...)

## S3 method for class 'pth_palette'
pth_data_cvd(x, cvd = pth_cvd_grid(), n_point = 11, ...)

## S3 method for class 'pth_mat'
pth_data_cvd(x, cvd = pth_cvd_grid(), ...)

Arguments

x

character, pth_mat, or pth_palette: a means to express color

cvd

tbl_df with columns condition, severity; see pth_cvd_grid().

...

other args, not used.

transformer

function used to transform the colors to new color space, e.g. pth_to_cieluv.

n_point

integer number of points from the palette.

Value

tibble with columns "hex_original", "condition", "severity", "luminance", "chroma", "hue", "hex".


ijlyttle/colorpath documentation built on Sept. 13, 2022, 7:44 p.m.