Description Usage Arguments Author(s) Examples
This function consumes an OTU, and a rank, as well as various optional parameters. It creates a stacked bar plot showing the abundance of all classifications at the given taxonomic rank for each sample.
1 2 3 4 |
data |
a list of OTU tables. |
rank |
the taxonomic rank to use.
See |
top |
the number of groups to select, starting with the most abundant.
If |
count |
logical. If |
drop.unclassified |
logical. Should unclassified samples be excluded from the data? |
cex.x |
optional. The size of x axis names. |
main |
the title of the plot |
file |
the file path where the image should be created (see ?RAM.plotting). |
ext |
the file type to be used; one of |
height |
the height of the image to be created (in inches). |
width |
the width of the image to be created (in inches). |
bw |
logical. Should the image be created in black and white? |
ggplot2 |
logical. Should the |
Wen Chen and Joshua Simpson
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(ITS1, ITS2)
# plot the relative abundance at the class level to the screen,
# ignoring the unclassified
group.abundance(data=list(ITS1=ITS1), rank="phylum",
drop.unclassified=TRUE)
## Not run:
# plot the count abundance at the phylum level to path.tiff
group.abundance(data=list(ITS1=ITS1, ITS2=ITS2), rank="g",
top=10, count=FALSE, drop.unclassified=TRUE,
main="", file=NULL, ext=NULL,
height=8, width=16, bw=FALSE, ggplot=TRUE)
## End(Not run)
|
Loading required package: vegan
Loading required package: permute
Loading required package: lattice
This is vegan 2.4-4
Loading required package: ggplot2
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.