Create a table for ternary plot ggtern package.
prep_tern_otu(x, abund.thres = 1e-04, prev.thres = 0.1, group = NULL)phyloseq-class object.
= 0.0001 check microbiome package core function.
remove taxa that are detected at 0.0001 in less than prev.thres of samples.
= 0.1 check microbiome package core function.
Grouping variable to compare, for this plot there has to be three groups in the data
tibble object.
Plots the mean relative abundance of taxa in 3 groups being compared.
# library(microbiome)
# library(microbiomeutilities)
# library(dplyr)
# data("zackular2014")
# p0 <- zackular2014
# prep_tern_otu(p0, group="DiseaseState",
# abund.thres=0.0001, prev.thres=0.25)