Visualize the result of post-hoc test using ggplot2
plot_postHocTest(pht, feature, step_increase = 0.12)
a postHocTest
object
character, to plot the post-toc test result of this feature
numeric vector with the increase in fraction of total
height for every additional comparison to minimize overlap, default 0.12
.
a ggplot
object
data(enterotypes_arumugam)
ps <- phyloseq::subset_samples(
enterotypes_arumugam,
Enterotype %in% c("Enterotype 3", "Enterotype 2", "Enterotype 1")
) %>%
phyloseq::subset_taxa(Phylum == "Bacteroidetes")
pht <- run_posthoc_test(ps, group = "Enterotype")
plot_postHocTest(pht, feature = "p__Bacteroidetes|g__Alistipes")