View source: R/prep_tern_otu.R
| prep_tern_otu | R Documentation |
Create a table for ternary plot ggtern package.
prep_tern_otu(x, abund.thres = 1e-04, prev.thres = 0.1, group = NULL)
x |
|
abund.thres |
= 0.0001 check |
prev.thres |
= 0.1 check |
group |
Grouping variable to compare, for this plot there has to be three groups in the data |
Plots the mean relative abundance of taxa in 3 groups being compared.
tibble object.
# library(microbiome)
# library(microbiomeutilities)
# library(dplyr)
# data("zackular2014")
# p0 <- zackular2014
# prep_tern_otu(p0, group="DiseaseState",
# abund.thres=0.0001, prev.thres=0.25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.