R/greycol.R

##==============================================================================
## greycol: black-white colors
##==============================================================================

greycol <- function (n=100, interval = c(0.0,0.7)) {

  return(shadepalette (n=n, inicol="white", endcol="black", interval=interval))
}

# alias for greycol...
graycol <- function (n=100,                 # number of colors
                     interval = c(0.0,0.7)) # interval *to* where to interpolate
  return(shadepalette(n=n,inicol="white",endcol="black",interval=interval))

Try the shape package in your browser

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

shape documentation built on May 4, 2021, 3 p.m.