Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

panel.lmbands

show confidence and prediction bands on plots


Description

show confidence and prediction bands on plots

Usage

panel.lmbands(
  x,
  y,
  interval = "confidence",
  level = 0.95,
  model = lm(y ~ x),
  band.col = c(conf = slcol[3], pred = slcol[2]),
  band.lty = c(conf = slty[3], pred = slty[2]),
  band.show = TRUE,
  fit.show = TRUE,
  band.alpha = 0.6,
  band.lwd = 1,
  npts = 100,
  ...
)

Arguments

x, y

numeric vectors

interval

a vector subset of 'confidence' and 'prediction'

level

confidence level

model

model to be used for generating bands

band.col

a vector of length 1 or 2 giving the color of bands

band.lty

a vector of length 1 or 2 giving the line type for bands

band.show

logical vector of length 1 or 2 indicating whether confidence and prediction bands should be shown

fit.show

logical indicating whether the model fit should be shown

band.alpha

a vector of length 1 or 2 alpha level for bands

band.lwd

a vector of length 1 or 2 giving line width for bands

npts

resolution parameter for bands (increase to get better resolution)

...

additional arguments


mosaic

Project MOSAIC Statistics and Mathematics Teaching Utilities

v1.8.3
GPL (>= 2)
Authors
Randall Pruim [aut, cre], Daniel T. Kaplan [aut], Nicholas J. Horton [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.