lmplot2.Rd
Plots to assess the goodness of fit for the linear model objects
lmplot2(
x,
which = 1:5,
caption = c("Residuals vs Fitted", "Normal Q-Q plot",
"Scale-Location plot", "Cook's distance plot"),
panel = panel.smooth,
sub.caption = deparse(x$call),
main = "",
ask = interactive() && nb.fig < length(which)
&& .Device != "postscript",
...,
id.n = 3,
labels.id = names(residuals(x)),
cex.id = 0.75,
band=TRUE,
rug=TRUE,
width=1/10,
max.n=5000
)
lm object
Numerical values between 1 and 5, indicating which plots to be shown. The codes are:
Fitted vs residuals
Normal Q-Q
Scale-Location
Cook's distance
Residuals vs. predictor
Caption for each type of plot
function to draw on the existing plot
SubCaption for the plots
Main title of the plot
whether interactive graphics
parameters passed to lmplot2
.
integer value, less than or equal to residuals of lm object
Names of the residuals of the lm object
Parameter to control the height of text stringsx
logical vector indicating whether bandplot should also be plotted
logical vector indicating whether rug should be added to the existing plot
Fraction of the data to use for plot smooths
Maximum number of points to display in plots
This function replaces plot.lm2
, which has been deprecated
to avoid potential problems with S3 method dispatching.