View source: R/stat_fitted_resid.R
stat_fitted_resid | R Documentation |
'ggplot2' layer for plotting a fitted vs. residual scatter plot.
stat_fitted_resid(alpha = 0.5, ...)
alpha |
Adjust transparency of points. |
... |
Currently ignored. For extendability. |
A 'ggplot2' layer for plotting a fitted vs. residual scatter plot.
data(mtcars)
model <- lm(mpg ~ cyl + disp + hp, data = mtcars)
ggplot2::ggplot(data = model) + stat_fitted_resid()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.