geom_text_leverage: Returns a scatter plot with points that are labeled

View source: R/geom_text_leverage.R

geom_text_leverageR Documentation

Returns a scatter plot with points that are labeled

Description

Returns a scatter plot with points that are labeled

Usage

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

Value

a scatter plot with points that are labeled

Examples

library(ggplot2)
library(magrittr)
cars %>%
ggplot(aes(x = speed, y = dist)) +
geom_point() +
geom_lm() +
geom_text_leverage(check_overlap = TRUE,
digits = 1)

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