inspectTaxonomy | R Documentation |
Shiny gadget that allows users to visualize the scores of the taxa on the agpca axes, their positions on the phylogenetic tree, and their taxonomic assignments.
inspectTaxonomy(agpcafit, physeq, axes = c(1, 2), br.length = FALSE, height = 600)
agpcafit |
An agpca object, created either by the function
|
physeq |
A phyloseq object with a tree and a taxonomy table. |
axes |
The axes to plot, must be a vector of two whole numbers. |
br.length |
Plot the tree with the branch lengths? |
height |
The height, in pixels, of the plotting region. |
The function will open a browser window showing the tree and the locations of the taxa on the selected agpca axes. "Brushing" over the plot will highlight the positions of the selected taxa on the tree and list their taxonomic assignments. Clicking the "done" button will exit the app and return a data frame containing the positions of the selected taxa on the agpca axes, the taxonomic assignments of the selected taxa, and their names.
## Not run: data(AntibioticPhyloseq) pp = processPhyloseq(AntibioticPhyloseq) out.agpca = adaptivegpca(pp$X, pp$Q, k = 2) treeInspect(out.agpca, AntibioticPhyloseq) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.