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