Description Usage Arguments Value Author(s) See Also Examples
This function first use OTU.diversity
to calculate
the diversity indices for each sample and then do a boxplot to
compare the selected indices among different groups.
1 2 3 4 5 6 7 8 |
data |
a list, containing otu tables.
See also |
meta |
the metadata table to be used (must have same samples as
|
factors |
a character vector. Must be variables in the metadata |
indices |
a character vector. Must be one or more of the following:
"spec", "sim", "invsim", "shan", "sim_even", "shan_even",
"sim_trudiv", "shan_trudiv", "chao", "ACE". See also
OTU.diversity, |
diversity.info |
logical. Whether the diversity indices have calculated and
included in the metadata table. The diversity indices should be
processed by |
x.axis |
optional. If |
compare |
optional. If |
facet |
optional. If provided, must be one factor in the metadata or 'SampleID' |
facet.y |
logical, whether the |
facet.x.cex |
optional, an integer, the font size of the |
facet.y.cex |
optional, an integer, the font size of the |
scale.free |
optional. Whether use free scale for y axis. |
xlab |
optional. If not provided, the |
ylab |
optional. If not provided, "value" will be used as the title of the y axis, otherwise, will use the provided string. |
legend.title |
optional. If not provided, |
legend.labels |
optional. If not provided, will use the levels of |
file |
the filename to save the plot. |
ext |
the extention (file type) of the plot to saved. |
width |
the width of the plot to be saved. |
height |
the heigth of the plot to be saved. |
This function returns a boxplot to compared selected diversity indices among different groups.
Wen Chen.
OTU.diversity
, true.diversity
,
evenness
and diversity
1 2 3 4 5 6 7 8 9 10 |
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
Warning messages:
1: `axis.ticks.margin` is deprecated. Please set `margin` property of `axis.text` instead
2: `panel.margin` is deprecated. Please use `panel.spacing` property instead
Using City, Crop, Harvestmethod, SampleID as id variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.