stat_cooks_obs: stat_cooks_obs

Description Usage Arguments Value Examples

View source: R/stat_cooks_obs.R

Description

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

Usage

1

Arguments

...

Currently ignored. For extendability.

Value

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

Examples

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

gglm documentation built on Oct. 23, 2020, 7:57 p.m.