View source: R/nmds_phyloseq.R
nmds_phyloseq | R Documentation |
Inputs a phyloseq-class
object and
plots the NMDS of a treatment or set of treatments in space.
nmds_phyloseq(phyloseq_obj, treatment, method = 'bray', dimensions = 2, trymax = 100,
circle = 0.95, labels = NULL, colors = 'default', verbose = TRUE)
phyloseq_obj |
A |
treatment |
Column name as a string or number in the
|
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". |
dimensions |
Number of dimensions. NB., the number of points n should be n > 2*k + 1, and preferably higher in global non-metric MDS, and still higher in local NMDS. |
trymax |
Maximum numbers of random starts in search of stable solution. The iteration will stop when two convergent solutions were found or trymax was reached. |
circle |
If TRUE, a |
labels |
Column name as a string or number in the
|
colors |
Name of a color set from the RColorBrewer package or a vector palette of R-accepted colors. |
verbose |
Whether or not to print the
|
ggplot-object
nmds_phyloseq(soil_column, c('Matrix', 'Treatment'),
circle = TRUE, verbose = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.