Description Usage Arguments Details Author(s) References Examples
Create three dimensional PCA plots from longitudinal microbiome data or multiple omics data sets.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
micro_set |
A tidy_micro data set |
table |
OTU table of interest |
time_var |
The time point variable column name in your tidi_MIBI set |
subject |
The subject variable column name in your tidi_MIBI set |
modes |
Components of the data to focus on: time, subjects, bacteria, etc. |
dist_method |
Dissimilartiy method to be calculated by vegdist. Euclidean by default |
type |
Either "PCA" or "PCoA" |
plot_scores |
Plot the scores instead of the principle components |
n_compA |
The number of components along first axis. See details |
n_compB |
The number of components along second axis. See details |
n_compC |
The number of components along third axis. See details |
cex.axis |
Options for |
cex.lab |
Options for |
main |
Plot title |
subtitle |
Plot subtitle |
scalewt |
Logical; center and scale OTU table, recommended |
Requires that you have columns for subject name and time point. Data must be complete across time points. The function will filter out inconsistent subjects
When type = "PCoA" the component matrices must be specified prior to the optimization. This is handled automatically.
If n_compA, n_compB, and n_compC aren't specified they will default to the number of complete subjects, the number of taxa, and the number of time points, respectively. This slows down performance slightly, but will not change the results.
Charlie Carpenter, Kayla Williamson
help(vegdist)
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.