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