Learn R Programming

gglm (version 1.0.4)

stat_cooks_obs: stat_cooks_obs

Description

`ggplot2` layer for plotting cook's distance by observation number.

Usage

stat_cooks_obs(...)

Value

A `ggplot2` layer for plotting cook's distance by observation number.

Arguments

...

Currently ignored. For extendability.

Examples

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

Run the code above in your browser using DataLab