stat_cooks_obs: stat_cooks_obs

View source: R/stat_cooks_obs.R

stat_cooks_obsR Documentation

stat_cooks_obs

Description

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

Usage

stat_cooks_obs(...)

Arguments

...

Currently ignored. For extendability.

Value

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

Examples

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

gglm documentation built on March 31, 2023, 5:45 p.m.