Description Usage Arguments Details Value Author(s) References See Also Examples
This function conumes one or two OTU tables, along with a metadata facotr, and creates a barplot showing the relative abundance of all groups which are statistical indicators of that factor.
1 2 3 4 5 6 7 |
data |
a list of OTUs or taxonomic abundance matrices.
see also |
is.OTU |
logical. Whether the input data are OTU tables. |
meta |
the metadata table to be used. |
factor |
a named character vector (of length 1) giving the name of the
column in |
rank |
the taxonomic rank to use
(see ?RAM.rank.formatting for formatting details).
if |
thresholds |
a character vector of length 4 specifying the thresholds for the A, B, stat, and p values (see Details). |
cex.x |
optional. The size of x axis names. |
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). |
This function uses indicspecies::multipatt
to determine
the indicators. After this analysis is performed, there will
likely be some species determined to be 'significant,' but to
varying degrees. To control how many groups are selected, you
can adjust the thresholds
argument. It consists of four
components:
(quotations taken from vignette("indicspeciesTutorial")
,
see References):
the specificity of the indicator; 'the probability that the surveyed site belongs to the target site group given the fact that the species has been found'
the fidelity of the indicator; 'the probability of finding the species in sites belonging to the site group'
the association strength for the combinations.
'the degree of statistical significance of the association'
Only the species with A
, B
, and stat
values above, and p.value
below those given in
thresholds
will be kept.
This function returns a stacked barplot and a vector of identified indicators, including the ones in the plot and the ones being excluded from the plot.
Wen Chen and Joshua Simpson.
De Caceres, M., Legendre, P. (2009). Associations between species and groups of sites: indices and statistical inference. Ecology, URL http://sites.google.com/site/miqueldecaceres/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | data(ITS1, ITS2, meta)
## Not run:
# inputs are OTU tables
group.indicators(data=list(ITS1=ITS1, ITS2=ITS2), is.OTU=TRUE,
meta, factor = c(Province="Province"),
rank="g")
group.indicators(data=list(ITS1=ITS1), is.OTU=TRUE, meta,
factor = c(Province="Province"),
rank=NULL)
group.indicators(data=list(ITS1=ITS1), is.OTU=TRUE, meta,
factor = c(Province="Province"),
rank=NULL)
# inputs are taxonomic abundance matrices
g1 <- tax.abund(ITS1, rank="g")
g2 <- tax.abund(ITS2, rank="g")
group.indicators(data=list(g1=g1, g2=g2), is.OTU=FALSE, meta,
factor = c(Province="Province"),
rank="g")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.