Fits normal distribution based on standard deviation

geom_normal_dist(
  mapping = NULL,
  data = NULL,
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  outline.type = "upper",
  ...
)

Arguments

...

Value

Examples

library(ggplot2) ggplot(faithful, aes(x = waiting)) + geom_rug() + geom_histogram(aes(y = ..density..)) + geom_normal_dist(fill = "magenta") + facet_wrap(facets = vars( eruptions > 3 ), ncol = 1)
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.