View source: R/tree_abun_plot.R
tree_abun_plot | R Documentation |
Plots phylogenetic tree with a heatmap denoting the average occurrence frequency of each taxa.
tree_abun_plot( otu, sample, tree, mini_abun, threshold, sample_name, sample_group, offset, width, core_col, noncore_col, low_col, high_col, hlab, ttip, tlab, hangle, hoffset )
otu |
a community count data matrix with samples in rows and OTUs/taxa in column, |
sample |
a sample information data.frame. The rownames must match the sample names in the otu, |
tree |
a phylogenetic tree. The tip labels must match the otu names in the otu, |
mini_abun |
a value indicating whether the otu is present, |
threshold |
a value indicating the final percent increase in beta-diversity, |
sample_name |
the name of a column that containing the sample name, |
sample_group |
the name of a column that containing the sample type/group, |
offset |
the offset between each subfigure, |
width |
the width of each heatmap cell, |
core_col |
the color of core tips, |
noncore_col |
the color of non-core tips, |
low_col |
the lowest color of the heatmap, |
high_col |
the highest color of the heatmap, |
hlab |
the font size of the heatmap label, |
ttip |
the node size of the tree, |
tlab |
the font size of the tree tip label, |
hangle |
the angle of column names, |
hoffset |
y offset for column names, |
Plots phylogenetic tree with a heatmap denoting the average occurrence frequency of each taxa.
A phylogenetic tree with a heatmap denoting the average occurrence frequency of each taxa with color denoting and core or non-core otu.
tree_abun_plot(otu, sample, tree, mini_abun=0, threshold=0.02, sample_name, sample_group, offset = 0.1, width = 0.5, core_col = 'deeppink4', noncore_col = 'darkseagreen3', low_col = 'white', high_col = 'lightcoral', hlab = 2, ttip = 2, tlab = 2, hangle = 270, hoffset = -1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.