Learn R Programming

dafs (version 1.0-38)

plotRegDiagPlots: Plot some standard regression diagnostic plots

Description

Produces 3 plots in a 2 x 2 array. The plots are a plot of residuals versus predicted values (pred-res plot), a histogram of the residuals with a normal distribution superimposed, and a normal QQ-plot of the residuals.

Usage

plotRegDiagPlots(fit)

Arguments

fit

A lm object

See Also

plot.lm

Examples

Run this code
# NOT RUN {
x = runif(100)
y = 3*x+2+dnorm(100)
fit = lm(y~x)
plotRegDiagPlots(fit)
# }

Run the code above in your browser using DataLab