View source: R/humann2_tools.R
Generates barplots statified by taxon and metadata
1 2 3 4 5 6 7 8 9 10 11 12 13 | makeHumann2Barplot(
dat,
last.plot.colors,
scale = "proportional-log",
use.random.colors = T,
hide.legend = T,
space = "fixed",
show.all.taxa = T,
fixed.floor = NULL,
fixed.ymax = NULL,
sample.threshold = 10,
hide.strata.legend = F
)
|
dat |
table holding preprocessed humann2 information using 'humann2Barplot' |
last.plot.colors |
dataframe of plot colors |
scale |
how to scale the height of bars, on default proportional-log |
use.random.colors |
use randomcoloR instead of RColorBrewer |
hide.legend |
boolean information if ledgend should be included |
space |
free or fixed (x scale) |
show.all.taxa |
boolean |
fixed.floor |
set ymin to a fixed value to prevent focus on minor bugs |
fixed.ymax |
set xmax to a fixed value keep y axis on multiple plots comparable |
sample.threshold |
minimum number of samples per strata required for plotting |
hide.strata.legend |
hide color legend |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.