Case study 3: The influence of grid size on the relationship between species richness and body size

Mihai Valcu


Appendix S4

Supporting information in Valcu, M., Dale, J., and Kempenaers, B. (2012). rangeMapper: a platform for the study of macroecology of life-history traits. Global Ecology and Biogeography 21, 945-951.

The example shown here is run on the wrens dataset which is part of the package. The wrens dataset has 84 species while the case study presented in the paper was run on 8434 bird species. Therefore both the settings and the results shown below are not identical with the results presented in Valcu et al 2012.

Project Set Up

Define grid size vector of increasing grid sizes.

Run log10(median_body_mass) ~ sqrt(species_richness) regression for each grid size

Extract and plot regression parameters