- x
For ordisurf
an ordination configuration, either a
matrix or a result known by scores
. For
plot.ordisurf
an object of class "ordisurf"
as
returned by ordisurf
.
- y
Variable to be plotted / modelled as a function of the
ordination scores.
- choices
Ordination axes.
- knots
Number of initial knots in gam
(one
more than degrees of freedom). If knots = 0
or
knots = 1
the function will fit a linear trend surface, and
if knots = 2
the function will fit a quadratic trend surface
instead of a smooth surface. A vector of length 2 is allowed when
isotropic = FALSE
, with the first and second elements of
knots
referring to the first and second of ordination
dimensions (as indicated by choices
) respectively.
- family
Error distribution in gam
.
- col
Colour of contours.
- isotropic, thinplate
Fit an isotropic smooth surface (i.e. same
smoothness in both ordination dimensions) via
gam
. Use of thinplate
is deprecated and
will be removed in a future version of the package.
- bs
a two letter character string indicating the smoothing basis
to use. (e.g. "tp"
for thin plate regression spline,
"cr"
for cubic regression spline). One of c("tp", "ts",
"cr", "cs", "ds", "ps", "ad")
. See
smooth.terms
for an over view of what these
refer to. The default is to use thin plate splines: bs = "tp"
.
- fx
indicates whether the smoothers are fixed degree of freedom
regression splines (fx = FALSE
) or penalised regression
splines (fx = TRUE
). Can be a vector of length 2 for
anisotropic surfaces (isotropic = FALSE
). It doesn't make
sense to use fx = TRUE
and select = TRUE
and
it is an error to do so. A warning is issued if you specify
fx = TRUE
and forget to use select = FALSE
though
fitting continues using select = FALSE
.
- add
Add contours to an existing diagram or draw a new plot?
- display
Type of scores known by scores
: typically
"sites" for ordinary site scores or "lc" for linear combination scores.
- w
Prior weights on the data. Concerns mainly cca
and decorana
results which have nonconstant weights.
- main
The main title for the plot, or as default the name of
plotted variable in a new plot.
- nlevels, levels
Either a vector of levels
for which contours
are drawn, or suggested number of contours in nlevels
if
levels
are not supplied.
- npoints
numeric; the number of locations at which to evaluate
the fitted surface. This represents the number of locations in each
dimension.
- labcex
Label size in contours. Setting this zero will suppress
labels.
- bubble
Use a “bubble plot” for points, or vary the point
diameter by the value of the plotted variable. If bubble
is
numeric, its value is used for the maximum symbol size (as in
cex
), or if bubble = TRUE
, the value of cex
gives
the maximum. The minimum size will always be cex = 0.4
. The
option only has an effect if add = FALSE
.
- cex
Character expansion of plotting symbols.
- select
Logical; specify gam
argument
"select"
. If this is TRUE
then gam
can
add an extra penalty to each term so that it can be penalized to
zero. This means that the smoothing parameter estimation that is part
of fitting can completely remove terms from the model. If the
corresponding smoothing parameter is estimated as zero then the extra
penalty has no effect.
- method
character; the smoothing parameter estimation
method. Options allowed are: "GCV.Cp"
uses GCV for models with
unknown scale parameter and Mallows' Cp/UBRE/AIC for models with
known scale; "GACV.Cp"
as for "GCV.Cp"
but uses GACV
(Generalised Approximate CV) instead of GCV; "REML"
and
"ML"
use restricted maximum likelihood or maximum likelihood
estimation for both known and unknown scale; and "P-REML"
and
"P-ML"
use REML or ML estimation but use a Pearson estimate
of the scale.
- gamma
Multiplier to inflate model degrees of freedom in GCV or
UBRE/AIC score by. This effectively places an extra penalty on
complex models. An oft-used value is gamma = 1.4
.
- plot
logical; should any plotting be done by
ordisurf
? Useful if all you want is the fitted response
surface model.
- lwd.cl
numeric; the lwd
(line width) parameter to use
when drawing the contour lines.
- formula, data
Alternative definition of the fitted model as
x ~ y
, where left-hand side is the ordination x
and
right-hand side the single fitted continuous variable
y
. The variable y
must be in the working environment
or in the data frame or environment given by data
. All
other arguments of are passed to the default method.
- object
An ordisurf
result object.
- newdata
Coordinates in two-dimensional ordination for new
points.
- what
character; what type of plot to produce. "contour"
produces a contour plot of the response surface, see
contour
for details. "persp"
produces a
perspective plot of the same, see persp
for
details. "gam"
plots the fitted GAM model, an object that
inherits from class "gam"
returned by ordisurf
, see
plot.gam
.
- ...
Other parameters passed to scores
, or
to the graphical functions. See Note below for exceptions.