Usage
## S3 method for class 'default':
envfit(ord, env, permutations = 999, strata, choices=c(1,2),
display = "sites", w = weights(ord), na.rm = FALSE, ...)
## S3 method for class 'formula':
envfit(formula, data, ...)
## S3 method for class 'envfit':
plot(x, choices = c(1,2), arrow.mul, at = c(0,0), axis = FALSE,
p.max = NULL, col = "blue", add = TRUE, ...)
## S3 method for class 'envfit':
scores(x, display, choices, ...)
vectorfit(X, P, permutations = 0, strata, w, ...)
factorfit(X, P, permutations = 0, strata, w, ...)
Arguments
ord
An ordination object or other structure from which the
ordination scores
can be extracted (including a data
frame or matrix of scores) env
Data frame, matrix or vector of environmental
variables. The variables can be of mixed type (factors, continuous
variables) in data frames.
X
Matrix or data frame of ordination scores.
P
Data frame, matrix or vector of environmental
variable(s). These must be continuous for vectorfit
and
factors or characters for factorfit
.
permutations
Number of permutations for assessing significance
of vectors or factors. Set to 0
to skip permutations.
na.rm
Remove points with missing values in ordination scores
or environmental variables. The operation is casewise: the whole
row of data is removed if there is a missing value and
na.rm = TRUE
.
x
A result object from envfit
.
arrow.mul
Multiplier for vector lengths. The arrows are
automatically scaled similarly as in plot.cca
if this
is not given and add = TRUE
. at
The origin of fitted arrows in the plot. If you plot arrows
in other places then origin, you probably have to specify
arrrow.mul
.
axis
Plot axis showing the scaling of fitted arrows.
p.max
Maximum estimated $P$ value for displayed
variables. You must calculate $P$ values with setting
permutations
to use this option.
add
Results added to an existing ordination plot.
strata
An integer vector or factor specifying the strata for
permutation. If supplied, observations are permuted only within the
specified strata.
display
In fitting functions these are ordinary site scores or
linear combination scores
("lc"
) in constrained ordination (cca
,
rda
,
w
Weights used in fitting (concerns mainly cca
and decorana
results which have nonconstant weights).