R/gpalx.R

#' The extended colour palette
#' 
#' @name gpalx
#' @param n a positive integer
#' @details This function interpolates the original Grattan palette for a large (possibly infinite) number of factors.  
#' @return A vector of n HTML colours.
#' @export

gpalx <- function(n){
  grDevices::colorRampPalette(colors = pal.6)(n)
}
HughParsonage/grattanCharts documentation built on May 8, 2019, 10:52 a.m.