prep_ternary | R Documentation |
Create a table for ternary plot ggtern R package.
prep_ternary( x, abund.thres = 1e-04, prev.thres = 0.1, group = NULL, level = "lowest" )
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 |
level |
= "Genus" Taxonomic level. If OTU/ASV level specify="lowest" Does not support phylum level aggregation |
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_ternary(p0, group = "DiseaseState", abund.thres = 0.0001, level = "Genus", prev.thres = 0.25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.