Learn R Programming

gglm (version 1.0.4)

stat_fitted_resid: stat_fitted_resid

Description

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

Usage

stat_fitted_resid(alpha = 0.5, ...)

Value

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

Arguments

alpha

Adjust transparency of points.

...

Currently ignored. For extendability.

Examples

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

Run the code above in your browser using DataLab