geom_point_high_leverage: Returns a scatter plot with points that are colored if they...

View source: R/geom_point_high_leverage.R

geom_point_high_leverageR Documentation

Returns a scatter plot with points that are colored if they have a high leverage distance

Description

Returns a scatter plot with points that are colored if they have a high leverage distance

Usage

geom_point_high_leverage(
  mapping = NULL,
  data = NULL,
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  ...
)

Value

a scatter plot with points that are colored if they have a high leverage distance

Examples

library(ggplot2)
library(magrittr)
cars %>%
ggplot(aes(x = speed, y = dist)) +
geom_point() +
geom_point_high_leverage(color = 'red')

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