stat_fitted_resid: stat_fitted_resid

View source: R/stat_fitted_resid.R

stat_fitted_residR Documentation

stat_fitted_resid

Description

'ggplot2' layer for plotting a fitted vs. residual scatter plot.

Usage

stat_fitted_resid(alpha = 0.5, ...)

Arguments

alpha

Adjust transparency of points.

...

Currently ignored. For extendability.

Value

A 'ggplot2' layer for plotting a fitted vs. residual scatter plot.

Examples

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

gglm documentation built on March 31, 2023, 5:45 p.m.