View source: R/geom_x_percentile.R
geom_x_percentile | R Documentation |
Lines defined by quantile value of x
geom_x_percentile(
mapping = NULL,
data = NULL,
...,
x,
na.rm = FALSE,
show.legend = NA
)
show.legend |
library(ggplot2)
ggplot(data = cars, mapping = aes(x = speed, y = dist)) +
geom_point() + geom_x_percentile(percentile = c(25,75), linetype = "dashed") +
geom_x_percentile(percentile = 0, linetype = "dotted")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.