The getColors()
function can generate a variety of color palates. Use them to, for example, fill the bars in a histogram or bar chart with the fill
parameter.
The default is a color spectrum of 12 hcl colors presented in the order in which they are assigned to discrete levels of a categorical variable.
Display the color spectrum of 12 hcl colors ordered by hue from 0 by intervals of 360/12 = 30 degrees.
Get a color wheel of 36 ordered hues around the wheel.
Obtain deep rich colors for HCL qualitative scale.
Generate an hcl blue sequence with c=60
and vary l
.
Vary chroma for a yellow hcl sequence.
Generate seven colors from rust to blue.
Add a custom value of chroma, c
, to make less saturated.
Individually specify colors.
Generate a custom sequential range of colors.