Usage
bandplot(x,...)
## S3 method for class 'formula':
bandplot(x, data, subset, na.action, ...,
xlab=NULL, ylab=NULL, add = FALSE, sd = c(-2:2),
sd.col=c("magenta", "blue", "red", "blue", "magenta"),
sd.lwd=c(2, 2, 3, 2, 2), sd.lty=c(2, 1, 1, 1, 2),
method = "frac", width = 1/5, n=50)
## S3 method for class 'default':
bandplot(x, y, ..., add = FALSE, sd = c(-2:2),
sd.col=c("magenta", "blue", "red", "blue", "magenta"),
sd.lwd=c(2, 2, 3, 2, 2), sd.lty=c(2, 1, 1, 1, 2),
method = "frac", width = 1/5, n=50)Arguments
x
either formula providing a single dependent variable (y) and
an single independent variable (x) to use as coordinates in the
scatter plot or a numeric vector of x locations
y
numeric vector of y locations
data
an optional data.frame, list, or environment contianing
the variables used in the model (and in subset). If not found in
data, the variables are taken from environment(formula),
typically the environment from which lm is called.
subset
an optional vector specifying a subset of observations to be
used in the fitting process.
na.action
a function which indicates what should happen when
the data contain NAs. The default is set by the na.action
setting of options, and is na.fail if that is unset. The
factory-fresh default is na.omit. Another possible value is
NULL, no a
...
Additional plotting parameters
xlab, ylab
x and y axis labels
add
Boolean indicating whether the local mean and standard
deviation lines should be added to an existing plot. Defaults to
FALSE.
sd
Vector of multiples of the standard devation that should be
plotted. 0 gives the mean, -1 gives the mean minus
one standard deviation, etc. Defaults to -2:2.
sd.col,sd.lwd,sd.lty
Color, line width, and line type of each plotted line.
method, width, n
Parameters controlling the smoothing. See the
help page for wapply for details.