geom_y_mean: Place line at mean of y

View source: R/geom_y_mean.R

geom_y_meanR Documentation

Place line at mean of y

Description

Place line at mean of y

Usage

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

Arguments

...

Examples

library(ggplot2)
ggplot(cars) + aes(x = speed, y = dist) +
geom_point() + geom_y_mean(size = 1.5) + aes(color = speed > 14)

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