plotbar: plot bar for relative abundance for bacteria
Description
plot bar for relative abundance for bacteria
Usage
plotbar(
physeq,
level = "Phylum",
color = NULL,
group = NULL,
top = 5,
fontsize.x = 5,
fontsize.y = 12
)
Arguments
physeq
A phyloseq
object containing merged information of abundance,
taxonomic assignment, sample data including the measured variables and categorical information
of the samples, and / or phylogenetic tree if available.
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
Value
Returns a ggplot object. This can further be manipulated as preferred by user.
Examples
Run this code# NOT RUN {
data("Physeq")
phy<-normalize(physeq)
plotbar(phy,level="Phylum")
# }
Run the code above in your browser using DataLab