An R package for creating consistent color palettes using the HCL color space
The chroma
package provides tools that make it easier to create color palettes
for R graphics using the Hue-Chroma-Luminance (HCL) color space. The HCL color
space is derived from the CIE-LUV color
space by applying a polar coordinate transformation (see
here and
here
for details).
The chroma
package has three functions to create color palettes:
qpal
: create qualitative color palettes
dpal
: create divergent color palettes
spal
: create sequential color palettes
The chroma
package is not on CRAN, but can be installed from R using:
install.packages("devtools")
library(devtools)
install_github(repo = "michaelmalick/r-chroma")
library(chroma)
MIT
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.