Learn R Programming

mgcViz (version 0.2.0)

plot.nested1D: Plotting one dimensional nested effects

Description

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

Usage

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

Value

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

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.

ylim

if supplied then this pair of numbers are used as the y 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.