geom_x_mean: Place point at mean of x and mean of y

View source: R/geom_x_mean.R

geom_x_meanR Documentation

Place point at mean of x and mean of y

Description

Place point at mean of x and mean of y

Usage

geom_x_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_x_mean(size = 1.5) + aes(color = speed > 14)

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