Description Usage Arguments Value
View source: R/microbiome_helpers.R
Function to quickly plot a variety of oridation methods Uses
plot_ordination
from phyloseq
1 2 | make_ordination_plots(physeq, ord_methods = c("NMDS", "PCoA"),
distance = "bray", colour_var = NULL)
|
physeq |
(Required). A phyloseq object |
ord_methods |
A character vector containing the names of the ordinations
to plot. Default is |
distance |
A character string. Default is "bray". Name of the distance
method to use. Value is passed to |
colour_var |
A character string containing the name of the variable to
use for colouring the plot. Must be a valid column of
|
Returns a ggplot
object with the plots of interest
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.