Supplement 1. R code for conducting the statistical analysis described in the main text.

File List

R_code.R (MD5: eb4a55faf02614a7f20f05f2f6117fc2)


The code contains the function to estimate the relative contributions of selection, drift, dispersal limitation, and homogenizing dispersal to the community assembly of the heath vegetation, as well as the function to evaluated the importance of abiotic variables and spatial eigenvectors to the abundance of species through a Redundancy Analysis.