geom_y_mean.Rd
Place line at mean of y
geom_y_mean( mapping = NULL, data = NULL, position = "identity", na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, ... )
... |
---|
library(ggplot2) ggplot(cars) + aes(x = speed, y = dist) + geom_point() + geom_y_mean(size = 1.5) + aes(color = speed > 14)