View source: R/8.barrel_ord_summary.R
| barrel_ord_summary | R Documentation |
Computes adjusted R-squared and percentage of variance explained for constrained ordination methods
(e.g., rda, cca, capscale, dbrda), or returns the stress value for
non-metric multidimensional scaling (metaMDS).
barrel_ord_summary(ord)
ord |
An ordination object of class |
A named list with components:
Class of the ordination object as a character string.
Adjusted R-squared (percentage) for constrained ordinations; NA for NMDS.
Named numeric vector of variance explained by each axis (percentage), if available.
Stress value for NMDS objects.
Message explaining output, especially for NMDS or missing R2.
library(vegan)
data(dune)
data(dune.env)
# PCA (unconstrained ordination)
pca <- rda(dune)
barrel_ord_summary(pca)
# RDA (constrained ordination)
rda_mod <- rda(dune ~ A1 + Moisture, data = dune.env)
barrel_ord_summary(rda_mod)
# NMDS
nmds <- metaMDS(dune, k = 2)
barrel_ord_summary(nmds)
# dbRDA
dbrda_mod <- dbrda(dune ~ A1 + Management, data = dune.env, distance = "bray")
barrel_ord_summary(dbrda_mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.