R/colors.R

Defines functions rcolors distinctColors

#' @importFrom Polychrome createPalette
#' @noRd
distinctColors <- function(n, argsList) {
  f <- function(...) {
    createPalette(n, ...)
  }
  do.call(f, argsList)
}

#' @importFrom colorsGen randomColor
rcolors <- function(n, argsList) {
  f <- function(...) {
    randomColor(n, ...)
  }
  do.call(f, argsList)
}

Try the RCDT package in your browser

Any scripts or data that you put into this service are public.

RCDT documentation built on Nov. 2, 2023, 5:52 p.m.