plot.wbaconlm {wbacon} | R Documentation |
Plot Diagnostics for an Object of Class wbaconlm
Description
Four plots (selectable by which
) are available for an object of
class wbaconlm
(see wBACON_reg
): A plot
of residuals against fitted values, a scale-location plot of
\sqrt{| residuals |}
against fitted values,
a Normal Q-Q plot, and a plot of the standardized residuals versus the
robust Mahalanobis distances.
Usage
## S3 method for class 'wbaconlm'
plot(x, which = c(1, 2, 3, 4), hex = FALSE,
caption = c("Residuals vs Fitted", "Normal Q-Q", "Scale-Location",
"Standardized Residuals vs Robust Mahalanobis Distance"),
panel = if (add.smooth) function(x, y, ...)
panel.smooth(x, y, iter = iter.smooth, ...) else points,
sub.caption = NULL, main = "",
ask = prod(par("mfcol")) < length(which) && dev.interactive(),
...,
id.n = 3, labels.id = names(residuals(x)), cex.id = 0.75,
qqline = TRUE,
add.smooth = getOption("add.smooth"), iter.smooth = 3,
label.pos = c(4, 2), cex.caption = 1, cex.oma.main = 1.25)
Arguments
x |
object of class |
which |
if a subset of the plots is required, specify a subset of
the numbers |
hex |
toogle a hexagonally binned plot, |
caption |
captions to appear above the plots;
|
panel |
panel function. The useful alternative to
|
sub.caption |
common title |
main |
title to each plot |
ask |
|
... |
other parameters to be passed through to plotting functions. |
id.n |
number of points to be labelled in each plot, starting
with the most extreme, |
labels.id |
vector of labels |
cex.id |
magnification of point labels, |
qqline |
|
add.smooth |
|
iter.smooth |
the number of robustness iterations |
label.pos |
positioning of labels |
cex.caption |
controls the size of |
cex.oma.main |
controls the size of the |
Details
The plots for which %in% 1:3
are identical with the
plot method for linear models (see plot.lm
).
There you can find details on the implementation and references.
The standardized residuals vs. robust Mahalanobis distance plot
(which = 4
) has been proposed by Rousseeuw and van Zomeren (1990).
Value
[no return value]
References
Rousseeuw, P.J. and B.C. van Zomeren (1990). Unmasking Multivariate Outliers and Leverage Points, Journal of the American Statistical Association 411, 633–639. doi:10.2307/2289995