geom_normal_dist.Rd
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", ... )
... |
---|
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)#>