pev_data_separation: Get perceptual-separation within discrete-palette

Description Usage Arguments Value See Also Examples

View source: R/separation.R

Description

Get perceptual-separation within discrete-palette

Usage

1
2
pev_data_separation(.fdisc, n = NULL, method = "cie2000",
  include_cvd = TRUE)

Arguments

.fdisc

object that can be coerced to pev_fdisc, when called with an integer, returns the corresponding (hex-code) values.

n

integer number of colors to use for unbounded palette-functions

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

tbl_df with variables cvd, hex_a, hex_b, distance

See Also

pev_gg_separation

Examples

1
2
3
  pev_fcont("Dynamic") %>%
    pev_fdisc(n = 7, method = "panel") %>%
    pev_data_separation()

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