Description Usage Arguments Value Examples
This function plots a bar plot from a phyloseq
object.
The author of this fuction is GitHub user pjames1 in this thread.
1 2 | plot_ordered_bar(ps, x = "Sample_ID", y = "Abundance", fill = NULL,
leg_size = 0.5, title = NULL)
|
ps |
A |
x |
the varaiable in the |
y |
the varaiable in the |
fill |
the varaiable in the |
leg_size |
a number indicating the legend.key.size The default value is 0.5. |
title |
(optional) the title of the plot. |
This function returns a bar plot that is ordered similarly across samples.
1 2 | plot_ordered_bar(ps)
plot_ordered_bar(ps, x = "Sample_ID", y = "Abundance", fill = Genus, title = "Sample Abundance")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.