powered by
Produces a set of comparison diagnostic plots. The plot options are
Normal QQ Plot of Residuals,
Kernel Density Estimate of Residuals,
Residuals vs. Mahalanobis Distance,
Residuals vs. Fitted Values,
Sqrt Residuals vs. Fitted Values,
Response vs. Fitted Values,
Residuals vs. Index (Time),
Overlaid Normal QQ Plot of Residuals,
Overlaid Kernel Density Estimate of Residuals,
Scatter Plot with Overlaid Fits (for simple linear regression models).
# S3 method for lmfm plot(x, which.plots = 1:10, ...)
an lmfm object.
lmfm
either "ask" (character string) or an integer vector specifying which plots to draw. In the later case, the plot numbers are given above.
"ask"
additional parameters are ignored.
x is invisibly returned.
x
The selected plots are drawn on a graphics device.
See sideBySideQQPlot for 2, sideBySideKernelDensityPlot for 3, sideBySideIndexPlot for 8, overlaidQQPlot for 9, overlaidKernelDensityPlot for 10, overlaidSimpleRegressionPlot for 11, and sideBySideScatterPlot for the others.
sideBySideQQPlot
sideBySideKernelDensityPlot
sideBySideIndexPlot
overlaidQQPlot
overlaidKernelDensityPlot
overlaidSimpleRegressionPlot
sideBySideScatterPlot
# NOT RUN { data(stackloss) stack.lm <- lm(stack.loss ~ ., data = stackloss) stack.clean <- lm(stack.loss ~ ., data = stackloss, subset = 5:20) fm <- fit.models(stack.clean, stack.lm) plot(fm) # }
Run the code above in your browser using DataLab