Description Usage Arguments Value Examples
TODO: URL to explain CVD
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | pev_fcont_cvd(.fcont, type = c("deutan", "protan", "tritan", "none"),
severity = 1, ...)
## Default S3 method:
pev_fcont_cvd(.fcont, type = c("deutan", "protan",
"tritan", "none"), severity = 1, ...)
## S3 method for class 'pev_fcont'
pev_fcont_cvd(.fcont, type = c("deutan", "protan",
"tritan", "none"), severity = 1, ...)
pev_fdisc_cvd(.fdisc, type = c("deutan", "protan", "tritan", "none"),
severity = 1, ...)
## Default S3 method:
pev_fdisc_cvd(.fdisc, type = c("deutan", "protan",
"tritan", "none"), severity = 1, ...)
## S3 method for class 'pev_funbounded'
pev_fdisc_cvd(.fdisc, type = c("deutan",
"protan", "tritan", "none"), severity = 1, ...)
## S3 method for class 'pev_fbounded'
pev_fdisc_cvd(.fdisc, type = c("deutan", "protan",
"tritan", "none"), severity = 1, ...)
|
.fcont |
|
type |
|
severity |
|
... |
Other args (not used) |
.fdisc |
|
Object of of the same type as .fpal
;
a palette function, with S3 class pev_fcont
or pev_fdisc
.
1 2 3 4 5 6 7 8 9 10 11 | # Create continuous diverging-palette function
fcont_purple_green <- pev_fcont("Purple-Green")
fcont_purple_green
# Create discrete diverging-palette function
fdisc_purple_green <- pev_fdisc(fcont_purple_green, n = 11)
fdisc_purple_green
# Simulate color-vision deficiency
pev_fcont_cvd(fcont_purple_green, type = "deutan")
pev_fdisc_cvd(fdisc_purple_green, type = "deutan")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.