Description Usage Arguments Value Author(s) References See Also Examples
View source: R/ordination-methods.R
Function uses abundance (otu_table-class
) and
phylogenetic (phylo
) components of a
phyloseq-class
experiment-level object
to perform a
Double Principle Coordinate Analysis (DPCoA), relying heavily on
the underlying (and more general) function, dpcoa
.
The distance object ultimately provided is the square root of the
cophenetic/patristic (cophenetic.phylo
) distance
between the species, which is always Euclidean.
Although this distance is Euclidean, for numerical reasons it
will sometimes look non-Euclidean, and a correction will be performed.
See correction
argument.
1 |
physeq |
(Required). A |
correction |
(Optional). A function. The function must be
able to take a non-Euclidean Although the distance matrix should always be Euclidean, for numerical
reasons it will sometimes appear non-Euclidean and a correction method must
be applied. Two recommended correction methods are
|
scannf |
(Optional). Logical. Default is |
... |
Additional arguments passed to |
A dpcoa
-class object (see dpcoa
).
Julia Fukuyama julia.fukuyama@gmail.com. Adapted for phyloseq by Paul J. McMurdie.
Pavoine, S., Dufour, A.B. and Chessel, D. (2004) From dissimilarities among species to dissimilarities among communities: a double principal coordinate analysis. Journal of Theoretical Biology, 228, 523-537.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # # # # # # Esophagus
data(esophagus)
eso.dpcoa <- DPCoA(esophagus)
eso.dpcoa
plot_ordination(esophagus, eso.dpcoa, "samples")
plot_ordination(esophagus, eso.dpcoa, "species")
plot_ordination(esophagus, eso.dpcoa, "biplot")
#
#
# # # # # # GlobalPatterns
data(GlobalPatterns)
# subset GP to top-150 taxa (to save computation time in example)
keepTaxa <- names(sort(taxa_sums(GlobalPatterns), TRUE)[1:150])
GP <- prune_taxa(keepTaxa, GlobalPatterns)
# Perform DPCoA
GP.dpcoa <- DPCoA(GP)
plot_ordination(GP, GP.dpcoa, color="SampleType")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.