Usage
spread.level.plot(x, ...)
slp(x, ...)
spread.level.plot.formula(formula, data=NULL, subset, na.action,
main=paste("Spread-Level Plot for", varnames[response], "by",
varnames[-response]), ...)
spread.level.plot.default(x, by,
robust.line=any("MASS" == .packages(all = TRUE)),
start=0, xlab="Median", ylab="Hinge-Spread", las=par('las'),
main=paste("Spread-Level Plot for", deparse(substitute(x)),
"by", col=palette()[2], pch=1, lwd=2, ...)
spread.level.plot.lm(x, start=0,
robust.line=any("MASS" == .packages(all = TRUE)),
xlab="Fitted Values", ylab="Absolute Studentized Residuals",
las=par("las"),
main=paste("Spread-Level Plot for", deparse(substitute(x))),
pch=1, col=palette()[2], lwd=2, ...)
## S3 method for class 'spread.level.plot':
print(x, ...)
Arguments
x
a formula or an lm
object to be plotted; alternatively a numeric vector.
formula
a formula of the form y~x
, where y
is a numeric vector
and x
is a factor.
data
an optional data frame containing the variables to be plotted.
By default the variables are taken from the environment from which
spread.level.plot
is called.
subset
an optional vector specifying a subset of observations to be used.
na.action
a function that indicates what should happen when the data contain NA
s.
The default is set by the na.action
setting of options
.
by
a factor, numeric or character vector defining groups.
robust.line
if TRUE
a robust line is fit using the rlm
function in
the MASS
package; if FALSE
a line is fit using lm
.
start
add the constant start
to each data value.
xlab
label for horizontal axis.
ylab
label for vertical axis.
las
if 0
, ticks labels are drawn parallel to the
axis; set to 1
for horizontal labels (see par
). col
color for points and lines; the default is the second entry
in the current color palette (see palette
and par
). pch
plotting character for points; default is 1
(a circle, see par
). lwd
line width; default is 2
(see par
). ...
arguments passed to plotting functions.