PT - JOURNAL ARTICLE AU - May, Felix AU - Gerstner, Katharina AU - McGlinn, Dan AU - Xiao, Xiao AU - Chase, Jonathan M. TI - <kbd>mobsim</kbd>: An R package for the simulation and measurement of biodiversity across spatial scales AID - 10.1101/209502 DP - 2017 Jan 01 TA - bioRxiv PG - 209502 4099 - http://biorxiv.org/content/early/2017/10/26/209502.short 4100 - http://biorxiv.org/content/early/2017/10/26/209502.full AB - 1. Estimating biodiversity and its changes in space and time poses serious methodological challenges. First, there has been a long debate on how to quantify biodiversity, and second, measurements of biodiversity change are scale-dependent. Therefore comparisons of biodiversity metrics between communities are ideally carried out across scales. Simulation can be used to study the utility of biodiversity metrics across scales, but most approaches are system specific and plagued by large parameter spaces and therefore cumbersome to use and interpret. However, realistic spatial biodiversity patterns can be generated without reference to ecological processes, which suggests a simple simulation framework could provide an important tool for ecologists.2. Here, we present the R package mobsim that allows users to simulate the abundances and the spatial distribution of individuals of different species. Users can define key properties of communities, including the total numbers of individuals and species, the relative abundance distribution, and the degree of spatial aggregation. Furthermore, the package provides functions that derive biodiversity patterns from simulated communities, or from observed data, as well as functions that simulate different sampling designs.3. We show several example applications of the package. First, we illustrate how species rarefaction and accumulation curves can be used to disentangle changes in the fundamental biodiversity components: (i) total abundance, (ii) relative abundance distribution, (iii) and species aggregation. Second, we demonstrate how mobsim can be used to assess the performance of species-richness estimators. The latter indicates how spatial aggregation challenges classical non-spatial species-richness estimators.4. mobsim allows the simulation and analysis of a large range of biodiversity scenarios and sampling designs in an efficient and comprehensive way. The simplicity and control provided by the package can also make it a useful didactic tool. The combination of controlled simulations and their analysis will facilitate a more rigorous interpretation of real world data that exhibit sampling effects and scale-dependence.