corAxis: Correlation between ordination axes

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Calculates the Pearson product-moment correlation coefficient for the site scores of ordination axes.

Usage

1
2
3
4
5
6
7
corAxis(x, ...)

## Default S3 method:
corAxis(x, ...)

## S3 method for class 'symcoca'
corAxis(x, axes = c(1:min(6, x$n.axes)), ...)

Arguments

x

an ordination object. Only methods for objects of class symcoca are currently available.

axes

the number of axes to calculate the correlation coefficients for.

...

arguments to be passed on to other methods.

Value

A named vector containing the correlation coefficients for the requested axes.

Note

The arguments for cor are hard coded at their defaults, see cor for details. A more flexible version is planned that will allow arguments to be passed to cor.

Author(s)

Gavin L. Simpson

See Also

cor, for the main analysis function.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## load some data
data(beetles)
data(plants)

## log transform the beetle data
beetles <- log(beetles + 1)

## symmetric Co-CA model
beetles.sym <- coca(beetles ~ ., data = plants, method = "symmetric")

## correlations between axes
corAxis(beetles.sym)

gavinsimpson/cocorresp-old documentation built on May 16, 2019, 10:10 p.m.