View source: R/ordination-methods.R
ordinate | R Documentation |
This function wraps several commonly-used ordination methods. The type of
ordination depends upon the argument to method
. Try
ordinate("help")
or ordinate("list")
for the currently
supported method options.
ordinate(physeq, method = "DCA", distance = "bray", formula = NULL, ...)
physeq |
(Required). Phylogenetic sequencing data
( |
method |
(Optional). A character string. Default is Currently supported method options are:
|
distance |
(Optional). A character string. Default is Any supported |
formula |
(Optional). A model |
... |
(Optional). Additional arguments to supporting functions. For
example, the additional argument |
An ordination object. The specific class of the returned object depends upon the
ordination method, as well as the function/package that is called internally
to perform it.
As a general rule, any of the ordination classes
returned by this function will be recognized by downstream tools in the
phyloseq
package, for example the ordination plotting
function, plot_ordination
.
Related component ordination functions described within phyloseq:
DPCoA
Described/provided by other packages:
cca
/rda
, decorana
, metaMDS
,
pcoa
, capscale
NMDS and MDS/PCoA both operate on distance matrices, typically based on some
pairwise comparison of the microbiomes in an experiment/project. There are
a number of common methods to use to calculate these pairwise distances, and
the most convenient function (from a phyloseq
point of view) for calculating
these distance matrices is the
distance
function. It can be
thought of as a distance / dissimilarity-index companion function for
ordinate
, and indeed the distance options provided to ordinate
are often simply passed on to distance
.
A good quick summary of ordination is provided in the introductory vignette for vegan:
The following R
task views are also useful for understanding the
available tools in R
:
Analysis of Ecological and Environmental Data
# See http://joey711.github.io/phyloseq/plot_ordination-examples # for many more examples. # plot_ordination(GP, ordinate(GP, "DCA"), "samples", color="SampleType")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.