- traits
Individual Matrix of traits with traits in column (or species matrix when using "com" instead of "ind.plot").
- index
A vector of functions to apply to traits vectors in the form "mean(x, na.rm = TRUE)" or "range(x)".
- by.factor
A factor to split the Matrix of traits and compute index for each subset eg for each site.
- nullmodels
A vector of names corresponding to null models tu use for each index. local (or 1) corresponds to a randomization of individual values within a given community. regional.ind (or 2) corresponds to randomization of individual values within region, ie within all the dataset. A value of regional.pop (or 2sp) corresponds to randomization of population values (each individual value are replaced by the mean value of it population) within region. Finally a value of regional.pop.prab (or 2sp.prab) mirror null model regional.pop but without taking indo account species abundance. For example, if nullmodels = c("local", "regional.ind"), the first index will be calculated on the null model local and the second index on the null model regional.ind.
If only one value is given, all the the null model will be determined by this value.
- ind.plot
Factor defining the name of the plot (site or community) in which the individual is.
- sp
Factor defining the species which the individual belong to.
- com
Community data matrix with species (or populations) in rows and sites in column. Use only if ind.plot = NULL.
"traits" matrix and "com" matrix must have the same number of rows.
- SE
A single value or vector of standard errors associated with each traits. Especially allow to handle measurement errors. Not used with populational null model.
- namesindex
A vector of names for metrics.
- reg.pool
Regional pool data for traits. If not informed, traits is considere as the regional pool. This matrix need to be larger (more rows) than the matrix "traits". Use only for null model 2.
- SE.reg.pool
A single value or vector of standard errors associated with each traits in each regional pool. Use only if reg.pool is used. Need to have the same dimension as reg.pool.
- nperm
Number of permutations. If NULL, only observed values are returned.
- printprogress
Logical value; print progress during the calculation or not.
- independantTraits
Logical value (default: TRUE). If independantTraits is true (default), each traits is sample independently in null models, if not, each lines of the matrix are randomized, keeping the relation (and trade-off) among traits.
- type.sp.val
Only if ind.plot = NULL. Either "count" or "abundance". Use abundance when all values in the com matrix are not superior to one.
- x
An object of class ComIndexMulti.
- object
An object of class ComIndexMulti.
- type
Type of plot. Possible type = "simple", "simple_range", "normal", "barplot" and "bytraits".
- col.index
Vector of colors for index.
- add.conf
Logical value; Add confidence intervals or not.
- color.cond
Logical value; If color.cond = TRUE, color points indicate T-statistics values significatively different from the null model and grey points are not different from null model.
- val.quant
Numeric vectors of length 2, giving the quantile to calculate confidence interval. By default val.quant = c(0.025,0.975) for a bilateral test with alpha = 5%.
- ...
Any additional arguments are passed to the plot, print or summary function creating the core of the plot and can be used to adjust the look of resulting graph. See plot.listofindex for more arguments.