R/shade.R

Defines functions shade

Documented in shade

shade = function(x, y1, y2, col = hsv(alpha=0.5), border = NA, ...){
    x = c(x, rev(x))
    y = c(y1, rev(y2))
    polygon(x, y, col=col, border=border, ...)
}

Try the astro package in your browser

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

astro documentation built on May 2, 2019, 2:14 a.m.