R-script (code) to Fig. 1A-B and Table A1
datasetposted on 27.03.2018 by Erik I. Svensson, Miguel A. Gomez-Llano, Anais Rivas Torres, Hanna M. Bensch
Datasets usually provide raw data for analysis. This raw data often comes in spreadsheet form, but can be any collection of data, on which analysis can be performed.
This file contains the R-script and code that can be used to generate Fig. 1A-B and Table A1 in the manuscript. These figures show geographic variation in species frequencies (Fig. 1A) and density-differences between population categories (Fig. 1B), as well as the statistical tests (ANOVA and GLM) for comparison of these categories. Data-file associated with this script is provided separately.