stamp_exp_dist | R Documentation |
Title
stamp_exp_dist(
mapping = NULL,
data = NULL,
position = "identity",
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE,
outline.type = "upper",
...
)
... |
library(ggplot2)
ggplot(cars, aes(x = dist)) +
stamp_exp_dist(alpha = .5, height = 1, fill = "magenta") +
stamp_exp_dist(x_min = -5, x_max = -1.96, height = 1) +
stamp_exp_dist(x_min = 1.98, x_max = 5, height = 1)
ggplot(cars, aes(x = dist)) +
stamp_exp_dist(x_min = -1, x_max = 1, color = "slateblue",
color = "grey34", outline.type = "full") +
stamp_exp_dist(x_min = -2, x_max = 2, color = "slateblue", outline.type = "full") +
stamp_exp_dist(x_min = -3, x_max = 3, color = "slateblue", outline.type = "full") +
stamp_exp_dist(x_min = -4, x_max = 4, color = "slateblue", outline.type = "full") +
stamp_exp_dist(x_min = -15, x_max = 15, color = "slateblue", outline.type = "full")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.