View source: R/stat_density_confidence.R
stat_density_confidence | R Documentation |
This function creates a normal theory based confidence envelope for the empirical density. The idea came from functions written by Bowman and Azzalini.
stat_density_confidence(
mapping = NULL,
data = NULL,
geom = "ribbon",
position = "identity",
na.rm = TRUE,
inherit.aes = TRUE,
h = NULL,
fill = "skyblue",
fade = FALSE,
model = "none",
...
)
h |
A normal kernel function is used and |
fill |
Fill color for the confidence envelope. The default is |
model |
The model to draw the confidence envelope for. The default is |
These stat uses geom_ribbon()
so support the same aesthetics: alpha
, colour
, fill
,
linetype
, group
, and size
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.