Description Usage Arguments Value Examples
View source: R/method-get-pca.R
Performs a principal components analysis
1 2 3 4 5 6 7 |
obj |
phyloseq, phyloseq class or data.frame shape of data.frame is nrow sample * ncol feature. |
... |
additional parameters, see |
sampleda |
data.frame, nrow sample * ncol factors. |
method |
character, the standardization methods for
community ecologists. see |
pcasample class, contained prcomp class and sample information.
1 2 3 4 5 6 7 8 9 | # don't run in examples
#library(phyloseq)
#data(GlobalPatterns)
#subGlobal <- subset_samples(GlobalPatterns,
# SampleType %in% c("Feces", "Mock", "Ocean", "Skin"))
#pcares <- get_pca(subGlobal, method="hellinger")
#pcaplot <- ggordpoint(pcares, biplot=TRUE,
# speciesannot=TRUE,
# factorNames=c("SampleType"), ellipse=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.