plot.nested1D: Plotting one dimensional nested effects

View source: R/plot_nested1D.R

plot.nested1DR Documentation

Plotting one dimensional nested effects

Description

This method should be used to plot smooth effects of class "si.smooth.1D".

Usage

## S3 method for class 'nested1D'
plot(
  x,
  inner = FALSE,
  n = 100,
  xlim = NULL,
  ylim = NULL,
  maxpo = 10000,
  trans = identity,
  ...
)

Arguments

x

a smooth effect object.

inner

if TRUE we are doing to plot the inner transformation, rather that then outer smooth effect.

n

number of grid points used to compute main effect and c.i. lines. For a nice smooth plot this needs to be several times the estimated degrees of freedom for the smooth.

xlim

if supplied then this pair of numbers are used as the x limits for the plot.

maxpo

maximum number of residuals points that will be used by layers such as resRug() and resPoints(). If number of datapoints > maxpo, then a subsample of maxpo points will be taken.

trans

monotonic function to apply to the smooth and residuals, before plotting. Monotonicity is not checked.

...

currently unused.

Value

An object of class c("plotSmooth", "gg").


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