Description Usage Arguments Value Author(s) Examples
View source: R/micro_rocky_mtn.R
Display the magnitude of log p-values for each of the taxa in nb_mods
as vertical bars next to each other along the x-axis. The direction of the bars will be determined by the direction of the estimated relationship. The taxa will be color coded by the phylum they belong to, and taxa that have FRD adjusted p-values below your desired significance cutoff for the specified covariate will be labeled
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
modsum |
The output from nb_mods |
... |
The covariate you'd like to plot. Must be in the models created by nb_mods |
main |
Plot title |
ylab |
y-axis labels |
subtitle |
Plot subtitle |
pval_lines |
Logical; include horizonal dashed lines at corresponding p-values |
pval_text |
Logical; label the y-axis with corresponding p-values |
sig_text |
Logical; label the taxa with p-values below specified alpha |
facet_labels |
Labels for different facets if covariate has more than 1 beta coefficient |
alpha |
Significance cutoff |
lwd |
Line width for pval_lines |
lty |
Line type for pval_lines |
A ggplot you can add geoms to if you'd like
Charlie Carpenter, Rachel Johnson, Dan Frank
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(bpd_phy); data(bpd_cla); data(bpd_ord); data(bpd_fam); data(bpd_clin)
otu_tabs = list(Phylum = bpd_phy, Class = bpd_cla,
Order = bpd_ord, Family = bpd_fam)
set <- tidy_micro(otu_tabs = otu_tabs, clinical = bpd_clin) %>%
filter(day == 7) ## Only including the first week
## Creating negative binomial models on filtered tidy_micro set
nb_fam <- set %>%
otu_filter(ra_cutoff = 0.1, exclude_taxa = c("Unclassified", "Bacteria")) %>%
nb_mods(table = "Family", bpd1)
nb_fam %>% micro_rocky_mtn(bpd1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.