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.


mfasiolo/mgcViz documentation built on April 19, 2024, 8:16 a.m.