Description Usage Arguments Value Author(s) Examples
This function do a boxplot to show the distribution of selected taxa in each level of a given metadata variable
1 2 3 4 5 |
data |
a list of otu tables or taxonomic abundance matrices.
See also |
is.OTU |
logical. If an OTU table was provided, |
rank |
a single taxonomic rank.
See also |
taxa |
a vector containing taxa names for plotting. |
meta |
the metadata table to be used
(must have same samples as |
meta.factor |
a character string. Must be one of the metadata variables. |
cex.y |
size of y axis tick labels. |
cex.x |
size of x axis tick labels. |
cex.main |
size of title. |
RAM.theme |
customized ggplot_theme in RAM. See also ?theme_ggplot. |
col.pal |
color palettes to be used. |
main |
a character string. The title of the plot, default is an empty string. |
file |
filename to save the plot. |
ext |
filename extension, the type of image to be saved to. |
width |
an integer, width of the plot. |
height |
an integer, height of the plot. |
This function returns a boxplot of the distribution of seleted taxa within each level of a given metadata variable.
Wen Chen.
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(ITS1, ITS2, meta)
taxa <- c("Fusarium", "Alternaria", "Cladosporium")
group.Taxa.box(data=list(ITS1=ITS1, ITS2=ITS2),
is.OTU=TRUE, rank="g",
taxa=taxa, meta=meta, meta.factor="City")
## Not run:
taxa.1 <- c("Fusarium", "Alternaria", "Cladosporium",
"Verticillium", "Kondoa")
group.Taxa.box(data=list(ITS1=ITS1, ITS2=ITS2),
is.OTU=TRUE, rank="g",
taxa=taxa.1, meta=meta, meta.factor="City")
## End(Not run)
|
Loading required package: vegan
Loading required package: permute
Loading required package: lattice
This is vegan 2.5-3
Loading required package: ggplot2
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
Using City, sample as id variables
Using City, sample as id variables
Using City, sample as id variables
Using City, sample as id variables
Using City, sample as id variables
Using City, sample as id variables
Using City, sample as id variables
Using City, sample as id variables
Warning messages:
1: In group.Taxa.box(data = list(ITS1 = ITS1, ITS2 = ITS2), is.OTU = TRUE, :
1 taxa are not in the ITS1 dataset
2: In group.Taxa.box(data = list(ITS1 = ITS1, ITS2 = ITS2), is.OTU = TRUE, :
1 taxa are not in the ITS2 dataset
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.