R/plotDiagnostics.R
plotResidualDensity.Rd
Shows the distribution of residuals with a kernel density estimate.
plotResidualDensity(model)
A fitted model of class lm or glm.
lm
glm
A ggplot object.
ggplot
data(mtcars) m <- lm(mpg ~ wt + qsec, data = mtcars) plotResidualDensity(m)