This repository contains the required R code to reproduce the analyses and plots in: 'Geographic variation in the decline and recovery of freshwater insects across English river basins'. Rob Cooke, Ellie E. Dyer, Diana Bowler, Andrew C. Johnson, Mark Logie & Nick J.B. Isaac.
See fresh_eng.R
Growth rate analyses and data availability plots (Fig. 2; Fig. S2; Fig. S3; Fig. S4; Fig. S6; Fig. S7)
See msi_growth_rates.R
example_jags_model.txt
contains the JAGS code from an example occupancy model