R/colmap.R

Defines functions colmap

#' @importFrom grDevices heat.colors
colmap <- function(x, cmap=heat.colors) {
  xvals <- unique(x)
  cols <- cmap(length(xvals))
  return(cols[unclass(as.factor(x))])
}

Try the semtree package in your browser

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

semtree documentation built on Nov. 26, 2023, 5:07 p.m.