powered by
Generate residual plot of residuals against fitted value
gg_resfitted(fitted.lm, scale.factor = 1)
A ggplot object
a fitted linear model (i.e. lm, glm) that contains fitted regression
numeric; scales the point size and linewidth to allow customized viewing. Defaults to 1.
library(MASS) data(Cars93) cars_lm <- lm(Price ~ Passengers + Length + RPM, data = Cars93) gg_resfitted(cars_lm)
Run the code above in your browser using DataLab