Lines defined by median value of y

geom_y_median(
  mapping = NULL,
  data = NULL,
  ...,
  y,
  na.rm = FALSE,
  show.legend = NA
)

Arguments

show.legend

Value

Examples

library(ggplot2) ggplot(data = cars, mapping = aes(x = speed, y = dist)) + geom_point() + geom_y_median()