gradientDist: Positions of samples along a unit-length ordination gradient.
Description
Extracts information as to the locations of samples along an
ordination gradient. gradientDist() standardises the entire
gradient to the interval 0, ..., 1, to allow comparison between
methods or data sets.
Usage
gradientDist(object, ...)
## S3 method for class 'default':
gradientDist(object, order, na.rm = TRUE, \dots)
## S3 method for class 'cca':
gradientDist(object, na.rm = TRUE, axis = 1L,
scaling = 0, \dots)
## S3 method for class 'prcurve':
gradientDist(object, na.rm = TRUE, \dots)
Arguments
object
an R object of an appropriate type. For the default
method, any R object that can be coerced to a vector.
order
numeric vector indicating the ordering of points along
the gradient.
na.rm
logical; should missing values be removed?
axis
numeric, length 1; the ordination axis to take as the
gradient.
scaling
Scaling to apply to the site scores. Default is to do
no scaling. See scores.cca for details.
...
additional arguments passed to other methods. In the
"cca" method, these are also passed to
scores.cca.
Value
A numeric vector of positions along the gradient, scaled to the range
0, ..., 1.
See Also
See cca and prcurve for functions that
produce objects that gradientDist() can work with.
data(abernethy)
## Remove the Depth and Age variablesabernethy2 <- abernethy[, -(37:38)]
## Fit PCAaber.pca <- rda(abernethy2)
## Distance along the first PCA axisgradientDist(aber.pca)