View source: R/my_ordination.R
my_ordination | R Documentation |
Customized function for PCoA and NMDS
my_ordination(sp.df, sp.dist = NULL, method = NULL, axes = NULL, ...)
sp.df |
Species abundance data, row as sites while column as species |
sp.dist |
WHich distance should be used, by default, bray distance will be used |
method |
Either PCoA or NMDS should be conducted, by default, PCoA will be performed with ape::pcoa. Since it is recommended that PCoA are suitable for most of the applications. |
axes |
Indicating the numbers of axes interested, by default axes=2. |
... |
More arguments can be passed to vegan::metaMDS or ape::pcoa |
A list including 1) the ordination model and 2) the summary for further visualizations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.