geom_x_line | R Documentation |
Lines defined by values of x
geom_x_line(
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_line(alpha = .25) + aes(color = speed > 15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.