This function creates a normal theory based confidence envelope for the empirical density.

StatDensityConfidence

Format

An object of class StatDensityConfidence (inherits from Stat, ggproto, gg) of length 4.

Arguments

h

A normal kernel function is used and h is its standard deviation. If this parameter is omitted, a normal optimal smoothing parameter is used.

fill

Fill color for the confidence envelope. The default is fill="skyblue"

model

The model to draw the confidence envelope for. The default is model="none" which creates the confidence envelope from the data. Using model="normal" creates the confidence envelope based on a normal distribution.