pth_cvd_grid | R Documentation |
Helper functions to generate grid for color-vision deficiency (CVD) possibilities. These functions do the same thing, but have different default values.
pth_cvd_grid(condition = c("none", "deutan", "protan", "tritan"), severity = 1) pth_cvd_grid_full( condition = c("deutan", "protan", "tritan"), severity = c(0, 0.33, 0.67, 1) ) pth_cvd_grid_none(condition = "none", severity = 0) pth_cvd_grid_severity(severity = 1) pth_cvd_grid_deupro( condition = c("deutan", "protan"), severity = seq(0, 1, by = 0.1) )
condition |
|
severity |
|
All cases, including "none", at maximum severity.
All CVD cases, at four values of severity.
No CVD cases, zero severity.
Useful for evaluating performance of
categorical palettes, concatenates result of pth_cvd_grid_none()
with
pth_cvd_grid_severity()
.
Useful for choosing colors in categorical palettes, Deutan and Protan CVD cases, severity from zero to one.
tbl_df
with columns cvd
(factor), severity
(double)
pth_cvd_grid_none() pth_cvd_grid_full() pth_cvd_grid_severity(0.9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.