compute_group_cooks_distance: A function to find cooks distance of a point

View source: R/geom_text_cooks.R

compute_group_cooks_distanceR Documentation

A function to find cooks distance of a point

Description

A function to find cooks distance of a point

Usage

compute_group_cooks_distance(data, scales, digits = 3)

Arguments

data

the data set to be used

scales

Value

Cooks distance of a certain point

Examples

library(dplyr)
library(magrittr)
cars %>%
mutate(x = speed, y = dist) %>%
select(x,y) %>%
compute_group_cooks_distance(digits = 2)


EvaMaeRey/ggxmean documentation built on April 10, 2024, 6:32 p.m.