This function creates a normal theory based confidence envelope for the model residuals.

Format

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

Arguments

model

Name of fitted lm model.

type

Type of residual, either raw or standardized. The default is type="standardized"

fill

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