# Analysis of community ecology data in R

David Zelený

### Site Tools

en:suppl_vars_r

Section: Ordination analysis

## Supplementary variables (unconstrained ordination)

### R functions

• envfit (vegan) - fits supplementary variables on ordination scores, using multiple regression. Tests the significance of each variable using permutation test1). Results can be plotted onto ordination diagram using plot function; use argument p.max if only significant variables should be plotted. This function is a wrapper for functions vectorfit and factorfit applied on quantitative or qualitative environmental variables, respectively.
• scores (vegan) - extract scores of samples or species on ordination axes.
• ordisurf (vegan) - projects supplementary environmental variable as a non-linear surface onto ordination diagram (using GAM model).
• p.adjust.envfit - custom-built function (author: D. Zelený) to adjust the P-values in the object created by the function envfit, using p.adjust function. Definition is here.
1)
Note that the option to test the significance of supplementary variables passively projected onto ordination diagram is not available in CANOCO 5, where it would have to be done manually. CANOCO 5 alternative is to check the t-values reported together with results of regression coefficients - if absolute value of these t-values exceeds 2.1, one can consider them as significant (in case that number of samples minus number of supplementary variables is higher than 18) - see the CANOCO 5 manual (ter Braak & Šmilauer 2012), page 226.
en/suppl_vars_r.txt · Last modified: 2021/03/03 11:53 by David Zelený