Variance partitioning for multiple traits
decompCTRE.Rd
This function decomposes the variation in community trait composition into three sources: (i) the intraspecific trait variability, (ii) the variability due to species turnover and (iii) their covariation is also separated. This decomposition is computed for the whole variation in the trait values and, The formula specified, across the contribution of various explanatory variables considered in the model. Barplot.decompCTRE allow to plot the result of the decomposition.
Usage
decompCTRE(traits = NULL, formula = ~1, ind.plot = NULL, sp = NULL,
printprogress = TRUE, ...)
# S3 method for class 'decompCTRE'
barplot(height, resume = TRUE, ...)
Arguments
- traits
Matrix of traits with traits in column
- height
An object of class decompCTRE obtain by the function decompCTRE.
- formula
The formula parameter must be a one-sided formula, i.e. starting with a tilde (~) character. The response variable is specified by the next two arguments, specif.avg and const.avg. By default set to ~1.
- 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.
- printprogress
Logical value; print progress during the calculation or not.
- resume
Logical. If resume = FALSE, plot one graphic by traits.
- ...
Optional additional arguments
References
Leps, Jan, Francesco de Bello, Petr Smilauer and Jiri Dolezal. 2011. Community trait response to environment: disentangling species turnover vs intraspecific trait variability effects. Ecography 34 (5): 856-863.
See also
barplot.decompCTRE
;
traitflex.anova