decompCTRE {cati} | R Documentation |
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.
decompCTRE(traits = NULL, formula = ~1, ind.plot = NULL, sp = NULL,
printprogress = TRUE, ...)
## S3 method for class 'decompCTRE'
barplot(height, resume = TRUE, ...)
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 |
An object of class "decompCTRE".
Adrien Taudiere Jan Leps
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.
barplot.decompCTRE
;
traitflex.anova
data(finch.ind)
## Not run:
res.decomp <- decompCTRE(traits = traits.finch, sp = sp.finch,
ind.plot = ind.plot.finch, print = FALSE)
barplot.decompCTRE(res.decomp)
par(mfrow = c(2,2))
barplot.decompCTRE(res.decomp, resume = FALSE)
par(mfrow = c(1,1))
## End(Not run)