Description Usage Arguments Value Examples
Create heatmaps of the supplied dissimilarity matrices ordered by supplied grouping variables
1 2 3 4 5 6 7 8 9 10 11 12 13 |
beta_div |
A dissimilarity matrix calculated by |
micro_set |
A tidy_micro data set |
... |
Variables for ordering |
low_grad |
Colors for the corelation magnitude. Will be fed into scale_fill_gradient |
high_grad |
Colors for the corelation magnitude. Will be fed into scale_fill_gradient |
main |
Plot title |
xlab |
x-axis label |
ylab |
y-axis label |
subtitle |
Plot label |
natural_order |
Keep order of axes in the conventional order for dissimilarity matrices |
legend_title |
Title for the legend |
Returns a ggplot that you can add geoms to if you'd like
1 2 3 4 5 6 7 8 9 10 | data(phy); data(cla); data(ord); data(fam); data(met)
otu_tabs = list(Phylum = phy, Class = cla, Order = ord, Family = fam)
set <- tidy_micro(otu_tabs = otu_tabs, meta = met) %>%
filter(day == 7) ## Only including the first week
## Bray-Curtis beta diversity
bray <- set %>% beta_div(table = "Family")
bray %>% beta_heatmap(set, bpd1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.