View source: R/pcoa_phyloseq.R
pcoa_phyloseq | R Documentation |
Inputs a phyloseq-class
object and
plots the PCoA of a treatment or set of treatments in space.
pcoa_phyloseq(phyloseq_obj, treatment, x = 1, y = 2, method = 'bray',
circle = 0.95, colors = 'default', labels = NULL)
phyloseq_obj |
A |
treatment |
Column name as a string or number in the
|
x |
the numerical principle compenent to use as the x-axis |
y |
the numerical principle compenent to use as the y-axis |
method |
the distance measurement algorithm to use, match to "euclidean", "manhattan", "canberra", "clark", "bray", "kulczynski", "jaccard", "gower", "altGower", "morisita", "horn", "mountford", "raup", "binomial", "chao", "cao" or "mahalanobis". |
circle |
If TRUE, a |
colors |
Name of a color set from the RColorBrewer package or a vector palette of R-accepted colors. |
labels |
Column name as a string or number in the
|
ggplot-object
pcoa_phyloseq(soil_column, c('Matrix', 'Treatment'),
circle = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.