Published May 24, 2023 | Version v1
Software Open

species-correlated-responses

  • 1. UC Santa Cruz
  • 2. Massachusetts Institute of Technology

Description

This repository contains the code and data associated with the paper: Medeiros, L. P. and Saavedra, S. (2023). Understanding the state-dependent impact of species correlated responses on community sensitivity to perturbations. Ecology.

The repository contains 4 folders: codedatafigs, and results. Under code/scripts we provide the R scripts to reproduce Figures 1-5 and SI figures.

Code generate_synthetic_time_series.R generates synthetic time series from the different population dynamics models and stores them under data/synthetic_time_series. Empirical time series are located under data/empirical_time_series. Figure 1 can be generated by running fig1.R. For Figures 2, 3, and 4 we need to first run jacobian_covariance_synthetic_time_series.R for each population dynamics model. Results are already saved under results/synthetic_time_series and figures can be generated by running fig2.Rfig3.R, and fig4.R. For Figure 5, we need to first run smap_empirical_time_series.R and jacobian_covariance_empirical_time_series.R for each empirical time series. Results are already saved under results/empirical_time_series and the figure can be generated by running fig5A.R and fig5B.R.

SI figures can be generated with the corresponding scripts under code/scripts. All figures from the paper can be found under figs.

Files

species-correlated-responses.zip

Files (32.9 MB)

Name Size Download all
md5:570ede82918af0d9d8a73b2acd8885ad
32.9 MB Preview Download

Additional details