View source: R/geom_y_median.R
geom_y_median | R Documentation |
Lines defined by median value of y
geom_y_median(
mapping = NULL,
data = NULL,
...,
y,
na.rm = FALSE,
show.legend = NA
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
... |
Other arguments passed on to |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
library(ggplot2)
ggplot(data = cars, mapping = aes(x = speed, y = dist)) +
geom_point() +
geom_y_median()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.