powered by
Extracts information about the variance explained by ordination axes and expresses it in a variety of ways.
varExpl(object, ...)# S3 method for cca varExpl(object, axes = 1L, cumulative = FALSE, pcent = FALSE, ...)# S3 method for prcurve varExpl(object, pcent = FALSE, ...)
# S3 method for cca varExpl(object, axes = 1L, cumulative = FALSE, pcent = FALSE, ...)
# S3 method for prcurve varExpl(object, pcent = FALSE, ...)
A numeric vector variance explained by each axis.
an R object of an appropriate type. Currently only for objects that inherit from classes "cca" or "prcurve".
"cca"
"prcurve"
numeric vector indicating which axes to compute variance explained for.
logical; should the variance be explained as a cumulative sum over the axes?
logical; should the variance explained be expressed as a percentage of the total variance.
additional arguments passed to other methods. Currently not used.
Gavin L. Simpson
See cca and prcurve for functions that produce objects that varExpl() can work with.
cca
prcurve
varExpl()
data(abernethy) ## Remove the Depth and Age variables abernethy2 <- abernethy[, -(37:38)] ## Fit PCA aber.pca <- rda(abernethy2) ## Distance along the first PCA axis varExpl(aber.pca)
Run the code above in your browser using DataLab