stat_resid_hist: stat_resid_hist

View source: R/stat_resid_hist.R

stat_resid_histR Documentation

stat_resid_hist

Description

Visualize the distribution of the residuals of a model.

Usage

stat_resid_hist(bins = 30, ...)

Arguments

bins

Adjust the number of bins.

...

Currently ignored. For extendability.

Value

A 'ggplot2' layer for plotting a histogram of residuals.

Examples

data(mtcars)
model <- lm(mpg ~ cyl + disp + hp, data = mtcars)
ggplot2::ggplot(data = model) + stat_resid_hist()

gglm documentation built on June 22, 2024, 12:08 p.m.