make_ordination_plots: Make ordination plots

Description Usage Arguments Value

View source: R/microbiome_helpers.R

Description

Function to quickly plot a variety of oridation methods Uses plot_ordination from phyloseq

Usage

1
2
make_ordination_plots(physeq, ord_methods = c("NMDS", "PCoA"),
  distance = "bray", colour_var = NULL)

Arguments

physeq

(Required). A phyloseq object

ord_methods

A character vector containing the names of the ordinations to plot. Default is c("NMDS", "PCoA").

distance

A character string. Default is "bray". Name of the distance method to use. Value is passed to ordinate.

colour_var

A character string containing the name of the variable to use for colouring the plot. Must be a valid column of sample_data(physeq)

Value

Returns a ggplot object with the plots of interest


mworkentine/mattsUtils documentation built on May 23, 2019, 11:58 a.m.