Description Usage Arguments Details Value Examples
Function to create create HCL palette of n
colours based on fixed hue
.
Luminance monotonically increases, whilst chroma increases and then decreases.
If names provided: return named palette of same length as unique(names),
with n
distinct colours (if n is left null, all colours are unique)
If the hue
value is left as NULL, a function will be returned,
which can generate a palette when given a hue
values and n
and/or names
1 2 3 4 5 6 7 8 9 10 |
hue |
numeric hue value, or NULL to return palette function |
names |
names for palette, or NULL for unnamed palette of length |
n |
number of unique shades in palette |
minChroma |
minimum Chroma for palette |
maxChroma |
maximum Chroma for palette |
minLum |
minimum luminance for palette |
maxLum |
maximum luminance for palette |
power |
power used by |
Uses colorspace::sequential_hcl()
with a fixed hue to generate palettes.
The palette generated will be roughly centered around the midpoint of the luminance range, and at approximately the maximum chroma.
Note that edges of generated palette are cut off so min and max luminances are never returned. This is because they are, by default, too dark/light to be distinguishable across hues.
vector of colours, possibly named, or a function
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.