pev_data_derivative: Get perceptual-derivative of continuous-palette

Description Usage Arguments Value Examples

View source: R/derivative.R

Description

Get perceptual-derivative of continuous-palette

Usage

1
2
pev_data_derivative(.fcont, n_panel = 40, method = "cie2000",
  include_cvd = TRUE)

Arguments

.fcont

object that can be coerced to pev_fcont, when called with a numeric vector with values between 0 and 1, returns the corresponding (hex-code) values.

n_panel

numeric, number of panels into which to discretize the palette-function.

method

character, describes how the domain of the continuous palette is to be discretized, can be "post" or "panel" (using a fencing analogy).

include_cvd

logical or character, indicates to include data for for color-vision deficiency. Possible character values: "none", "protan", "deutan", "tritan".

Value

data.frame with variables cvd, x, hex, d_distance_d_x

Examples

1
  pev_data_derivative("Viridis")

ijlyttle/paleval documentation built on Dec. 25, 2019, 9:17 a.m.