Learn R Programming

cocorresp (version 0.4-6)

corAxis: Correlation between ordination axes

Description

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

Usage

corAxis(x, ...)

# S3 method for default corAxis(x, ...)

# S3 method for symcoca corAxis(x, axes = NULL, ...)

Value

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

Arguments

x

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

axes

numeric; the number of axes to calculate the correlation coefficients for. If NULL, coefficients for all axes are returned.

...

arguments to be passed on to other methods.

Author

Gavin L. Simpson

See Also

cor, for the main analysis function.

Examples

Run this code
od <- options(digits = 4)
## 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)
options(od)

Run the code above in your browser using DataLab