l_rug: Adding rug to margins of a plot

View source: R/L_rug.R

l_rugR Documentation

Adding rug to margins of a plot

Description

This layer adds a rug plot to the margins of a plot. It is mainly a wrapper around ggplot2::geom_rug. Notice that for factor effects plots the rug is jittered by default.

Usage

l_rug(...)

Arguments

...

graphical arguments to be passed to ggplot2::geom_rug.

Value

An object of class gamLayer.

See Also

See plot.mgcv.smooth.1D, plot.mgcv.smooth.2D or check1D for examples.


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

Related to l_rug in mgcViz...