#' create a color palette using hcl color space
#'
#' @param n length of the palette (i.e. how many colors)
#' @param c chroma value for the palette
#' @param l luminance value for the palette
#' @param ... additional arguments to be passed to \code{\link{hcl}}
#'
#' @author
#' Tim Appelhans
#'
#' @export hclPalette
hclPalette <- function(n, c = 60, l = 50, ...) {
hcl(h = seq(270, 0, length.out = n),
c = c, l = l, ...)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.