l_fitLine: Add fitted smooth effect curve

View source: R/L_fitLine.R

l_fitLineR Documentation

Add fitted smooth effect curve

Description

This layer add lines representing a single or a group of parametric or smooth 1D effects.

Usage

l_fitLine(...)

Arguments

...

graphical arguments to be passed to ggplot2::geom_line.

Details

When used in conjuction with plot.fs.interaction.1D, which plots smooth effects of type bs="fs", this function uses transparency to avoid over-plotting. This can be avoided by setting alpha = 1 in the call to l_fitLine.

Value

An object of class gamLayer.

See Also

See plot.mgcv.smooth.1D, plot.ptermNumeric, or plot.fs.interaction.1D for examples.


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

Related to l_fitLine in mgcViz...