View source: R/geom_y_mean_label.R
geom_y_mean_label | R Documentation |
Lines defined by mean value of y
geom_y_mean_label(
mapping = NULL,
data = NULL,
...,
y,
na.rm = FALSE,
show.legend = NA
)
show.legend |
library(ggplot2)
ggplot(data = cars, mapping = aes(x = speed, y = dist)) +
geom_point() + geom_y_mean_label() + geom_y_mean()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.