compute_group_leverage_distance: A function to find leverage distance of a point

View source: R/geom_text_leverage.R

compute_group_leverage_distanceR Documentation

A function to find leverage distance of a point

Description

A function to find leverage distance of a point

Usage

compute_group_leverage_distance(data, scales, digits = 3)

Arguments

data

the data set to be used

scales

Value

Leverage distance of a certain point

Examples

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


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