plotbar | R Documentation |
plot bar for relative abundance for bacteria
plotbar(
physeq,
level = "Phylum",
color = NULL,
group = NULL,
top = 5,
return = FALSE,
fontsize.x = 5,
fontsize.y = 12
)
physeq |
A |
level |
the level to plot |
color |
A vector of character use specifying the color |
group |
group (Optional). A character string specifying the name of a categorical variable containing grouping information. |
top |
the number of most abundance bacteria to display |
return |
return the data with the relative abundance |
fontsize.x |
the size of x axis label |
fontsize.y |
the size of y axis label |
Returns a ggplot object. This can further be manipulated as preferred by user.
Kai Guo
data("Physeq")
phy<-normalize(physeq)
plotbar(phy,level="Phylum")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.