R/getcolors.R

Defines functions getcolors

Documented in getcolors

getcolors <- function(col, len) {

  if(length(col) == 1) {
    if(tolower(col) == "r")
      col <- rainbow(len)
  }
  return(rep(col, length.out = len))
}

Try the Rwinsteps package in your browser

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

Rwinsteps documentation built on May 2, 2019, 1:08 p.m.