View source: R/stat_resid_hist.R
Visualize the distribution of the residuals of a model.
stat_resid_hist(bins = 30, ...)
Adjust the number of bins.
Currently ignored. For extendability.
A 'ggplot2' layer for plotting a histogram of residuals.
data(mtcars) model <- lm(mpg ~ cyl + disp + hp, data = mtcars) ggplot2::ggplot(data = model) + stat_resid_hist()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.