geom_text_cooks: Returns a scatter plot with points that are labeled

View source: R/geom_text_cooks.R

geom_text_cooksR Documentation

Returns a scatter plot with points that are labeled

Description

Returns a scatter plot with points that are labeled

Usage

geom_text_cooks(
  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_cooks(check_overlap = TRUE,
digits = 1)

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