powered by
Residual vs. leverage plot.
stat_resid_leverage( alpha = 0.5, method = "loess", se = FALSE, color = "steelblue", ... )
A `ggplot2` layer for plotting a fitted vs. residual scatter plot.
Adjust transparency of points.
Method for fitting the line to the points.
Keep standard error bands around line?
Color of the line.
Currently ignored. For extendability.
data(mtcars) model <- lm(mpg ~ cyl + disp + hp, data = mtcars) ggplot2::ggplot(data = model) + stat_resid_leverage()
Run the code above in your browser using DataLab