R/figConfidenceBand.R

figConfidenceBand <- function(X, Y, CILo, CIHi, Color = 'gray'){
  
  #Color = col2rgb(Color, TRUE)
  #Color[4] = .15  #make color semi transparent
  polygon(c(X, rev(X)), c(CILo, rev(Y)),col = Color, border = NA)
  polygon(c(X, rev(X)), c(CIHi, rev(Y)),col = Color, border = NA)
 
}

Try the lmSupport package in your browser

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

lmSupport documentation built on May 2, 2019, 2:14 p.m.