This repository contains R code for the simulations and figures in the manuscript "Niche complementarity among plants and animals can alter the biodiversity-ecosystem functioning relationship", accepted for publication in Functional Ecology.
regional_local.R
generates the regional species pool, and local communities
community_dynamics.R
simulates the dynamics of the local communities
results.R
extracts the properties of interest from the simulations
concept_figure.R
, figurePrimProd.R
, figureHerbPres.R
and figureHerbCont.R
produce Figures 1, 2, 3, 4
This repository is archived in Zenodo https://doi.org/10.5281/zenodo.8238367