Description Usage Arguments Value Side Effects See Also Examples
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).
| 1 2 | 
| x | an  | 
| which.plots | either  | 
| ... | additional parameters are ignored. | 
x is invisibly returned.
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.
| 1 2 3 4 5 | 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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.