View source: R/dissimilarity-based.R
calc_ordination | R Documentation |
Use to generate ordination axis scores to use when plotting ordination.
calc_ordination(dm, ord_type, metadata_map, constrain_factor)
dm |
Dissimilarity matrix. |
ord_type |
The type of ordination. 'NMDS', 'PCoA', or 'constrained' are the current accepted values. |
metadata_map |
Required if 'constrained' ord_type. |
constrain_factor |
Required if 'constrained' ord_type. |
Impliments nonmetric multidimensional scaling, principal coordinates
analysis, or constrained ordination (via capscale
in
vegan
).
A data frame consisting of the coordinates.
dm = calc_dm(fruits_veggies$data_loaded) ord = calc_ordination(dm, "nmds")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.