l_ciPoly: Adding confidence band to effect plots

View source: R/L_ciPoly.R

l_ciPolyR Documentation

Adding confidence band to effect plots

Description

This layer adds a polygon representing the confidence band of a smooth, random or parametric effect plots.

Usage

l_ciPoly(level = 0.95, mul = NULL, ...)

Arguments

level

coverage level (e.g. 0.9 means 90% intervals). Should be in (0, 1).

mul

number multiplied by the standard errors when calculating standard error curves. By default NULL, if set to a positive number it will over-ride level.

...

graphical arguments to be passed to ggplot2::geom_polygon.

Value

An object of class gamLayer

See Also

See plot.mgcv.smooth.1D, plot.ptermNumeric or plot.random.effect for examples.


mgcViz documentation built on Oct. 6, 2023, 5:09 p.m.

Related to l_ciPoly in mgcViz...