stamp_cauchy_prob | R Documentation |
Title
stamp_cauchy_prob(
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_cauchy_prob(alpha = .5, height = 1, fill = "magenta") +
stamp_cauchy_prob(x_min = -5, x_max = -1.96, height = 1) +
stamp_cauchy_prob(x_min = 1.98, x_max = 5, height = 1)
ggplot(cars, aes(x = dist)) +
stamp_cauchy_prob(x_min = -1, x_max = 1, color = "slateblue",
color = "grey34", outline.type = "full") +
stamp_cauchy_prob(x_min = -2, x_max = 2, color = "slateblue", outline.type = "full") +
stamp_cauchy_prob(x_min = -3, x_max = 3, color = "slateblue", outline.type = "full") +
stamp_cauchy_prob(x_min = -4, x_max = 4, color = "slateblue", outline.type = "full") +
stamp_cauchy_prob(x_min = -5, x_max = 5, color = "slateblue", outline.type = "full")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.