View source: R/geom_text_cooks.R
compute_group_cooks_distance | R Documentation |
A function to find cooks distance of a point
compute_group_cooks_distance(data, scales, digits = 3)
data |
the data set to be used |
scales |
Cooks distance of a certain point
library(dplyr)
library(magrittr)
cars %>%
mutate(x = speed, y = dist) %>%
select(x,y) %>%
compute_group_cooks_distance(digits = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.