R/shadepalette.R

Defines functions shadepalette

Documented in shadepalette

##==============================================================================
## shadepalette    : creates a palette that is suited for shading
##==============================================================================

shadepalette <- function(n=100, endcol = "red", inicol = "white",
  interval = c(0.0,1.0)) {

  x.to <- seq ( interval[1], interval[2], length.out=n)
  return( intpalette( rbind(inicol,endcol), n, x.to=x.to))

}

Try the shape package in your browser

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

shape documentation built on May 19, 2021, 9:09 a.m.