View source: R/palette_reduce.R
Reduce palette by removing colours with low saturation, or low or high luminance
1 2 | palette_reduce(pal, sat.thresh = NULL, light.thresh = NULL,
dark.thresh = NULL)
|
pal |
A palette as a character vector containing hexidecimal coded colours |
sat.thresh |
Minimum saturation of colours in resulting palette (between 0 and 1) |
light.thresh |
Maximum luminosity of colours in resulting palette (between 0 and 1) |
dark.thresh |
Minimum luminosity of colours in resulting palette (between 0 and 1) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.