Description Usage Arguments Value Examples
Rescale input to continuous-palette function
1 | pev_fcont_rescale(.fcont, limits = c(0, 1))
|
.fcont |
|
limits |
|
function
with S3 class pev_fcont
,
when called with a numeric vector with values between 0 and 1,
returns the corresponding (hex-code) values.
1 2 3 4 5 6 | # Create sequential-palette function
fcont_purple <- pev_fcont("Purples 3")
fcont_purple
# Rescale palette-function
pev_fcont_rescale(fcont_purple, limits = c(0.25, 0.75))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.