R/hclPalette.R

Defines functions hclPalette

Documented in hclPalette

#' 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, ...)
  
}
environmentalinformatics-marburg/Rsenal documentation built on July 28, 2023, 6:09 a.m.