make_ord_df | R Documentation |
Take a phyloseq object and generate a data frame of the distance-based ordination of the samples for plotting. This function has been tested with ordination methods 'PCoA' and 'RDA'. I can't make any promises if you use a different ordination method.
make_ord_df(
physeq,
dist_meth = "bray",
ord_meth = "PCoA",
scree_only = FALSE,
axes = 1:4
)
physeq |
A phyloseq object with an OTU table and sample data. The table should be normalized (rarefied, relative abundance, some kind of log-ratio transformation) so that the distance metrics will be meaningful. Make sure that the transformation you have used is appropriate for the distance method you choose. |
dist_meth |
The distance method to be use. Must be one of the methods
accepted by the |
ord_meth |
The ordination method. Must be one of the methods accepted by
the |
scree_only |
If |
axes |
A vector of integers indicating which ordination axes to include
in the data frame. Defaults to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.