powered by
Visualize the distribution of the residuals of a model.
stat_resid_hist(bins = 30, ...)
A `ggplot2` layer for plotting a histogram of residuals.
Adjust the number of bins.
Currently ignored. For extendability.
data(mtcars) model <- lm(mpg ~ cyl + disp + hp, data = mtcars) ggplot2::ggplot(data = model) + stat_resid_hist()
Run the code above in your browser using DataLab