Description Usage Arguments Value
View source: R/palDesaturate.R
Palette with same hue and luminance colors, only saturation varies down from start color
1 2 3 4 5 6 7 8 | palDesaturate(
base_color = "blue",
n = 3,
max_desaturation = 0.8,
plot = F,
lighten = 0,
dir = 1
)
|
base_color |
hex code or name |
n |
number of colors to return in palette |
max_desaturation |
fraction of desaturation for end color : 1 is complete desaturation |
plot |
if TRUE return hclplot |
lighten |
between -1 and 1, positive values for lightening and negtive for darkening |
dir |
-1 for reversing color order |
palette or plot for palette
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.