- x
a smooth effect object, extracted using sm.
- fix
a named vector indicating which variables must be kept fixed and to what values.
When plotting a smooth in (d+2) dimensions, then d variables must be fixed.
- se
when TRUE (default) upper and lower surfaces are added to the plot at se.mult
(see below) standard deviations for the fitted surface.
- n
sqrt of the number of grid points used to compute the effect plot.
- residuals
if TRUE, then the partial residuals will be added.
- type
the type of residuals that should be plotted. See residuals.gamViz.
- maxpo
maximum number of residuals points that will be plotted.
If number of datapoints > maxpo
, then a subsample of maxpo
points will be taken.
- too.far
a numeric vector with two entries. The first has the same interpretation
as in plot.mgcv.smooth.2D and it avoids plotting the smooth effect
in areas that are too far form any observation. The distance will be calculated only
using the variables which are not in fix
(see above). Hence in two dimensions,
not in the full d+2 dimensions. Set it to -1 to plot the whole
smooth. The second entry determines which residuals and covariates pairs are closed
enough to the selected slice. If left to NA
on the 10\
closest (in terms of scaled Euclidean distance) to the current slice will be plotted.
Set it to -1 to plot all the residuals.
- xlab
if supplied then this will be used as the x label of the plot.
- ylab
if supplied then this will be used as the y label of the plot.
- main
used as title for the plot if supplied.
- 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.
- se.mult
a positive number which will be the multiplier of the standard errors
when calculating standard error surfaces.
- trans
monotonic function to apply to the smooth and residuals, before plotting.
Monotonicity is not checked.
- seWithMean
if TRUE the component smooths are shown with confidence intervals that
include the uncertainty about the overall mean. If FALSE then the uncertainty
relates purely to the centred smooth itself. Marra and Wood (2012) suggests
that TRUE results in better coverage performance, and this is also suggested
by simulation.
- unconditional
if TRUE
then the smoothing parameter uncertainty corrected covariance
matrix is used to compute uncertainty bands, if available.
Otherwise the bands treat the smoothing parameters as fixed.
- ...
currently unused.