Description Usage Arguments Note Author(s) See Also Examples
These functions consume two OTU tables, along with (optionally)
a file name and a parameter top. They create a box plot
of the top number of OTUs (for plot.top.number),
or all OTUs with relative abundance above top percent
(for plot.top.percent) at the taxonomic ranks phylum,
class, order, family, and genus.
1 2 3 4 5 6 7 8 | group.top.number(data, top=10, ranks=c("p","c","o","f","g"),
drop.unclassified=FALSE, cex.x=NULL,
main=NULL,file=NULL, ext=NULL, height=8,
width=16, bw=FALSE, ggplot2=TRUE)
group.top.percent(data, top=10, ranks=c("p","c","o","f","g"),
drop.unclassified=FALSE, cex.x=NULL,
main=NULL, file=NULL, ext=NULL, height=8,
width=16, bw=FALSE, ggplot2=TRUE)
|
data |
a list of OTU tables. |
top |
the number of OTUs to select (for |
ranks |
a vector of the taxonomic ranks.
See also |
drop.unclassified |
logical. Should OTUs labelled "unclassified" or missing classification at the given taxonomic rank be excluded? |
cex.x |
optional. The size of the 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 |
Please be aware that the 'whiskers' in the plot may differ
depending on the setting of ggplot2.
Please see geom_boxplot boxplot,
and boxplot.stats for more information on how the
whiskers are calculated.
Wen Chen and Joshua Simpson.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
data(ITS1, ITS2)
# plots the top 10 OTUs (by default) at five ranks
group.top.percent(data=list(ITS1=ITS1, ITS2=ITS2), top=10)
# plots all OTUs w/ relative abundance > 10% (as specified) at
# five ranks and saves the result as a .tiff file
# (only using ITS1 data)
group.top.percent(data=list(ITS1=ITS1, ITS2=ITS2), top=10,
file="my/file/path", ext="tiff")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.