View source: R/stat_cooks_obs.R
stat_cooks_obs | R Documentation |
‘ggplot2' layer for plotting cook’s distance by observation number.
stat_cooks_obs(...)
... |
Currently ignored. For extendability. |
A ‘ggplot2' layer for plotting cook’s distance by observation number.
data(mtcars)
model <- lm(mpg ~ cyl + disp + hp, data = mtcars)
ggplot2::ggplot(data = model) + stat_cooks_obs()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.