############################################################################## # "Diversity loss from multiple interacting disturbances is regime-dependent” # Luke Lear, Hidetoshi Inamine, Katriona Shea, and Angus Buckling ############################################################################## This folder contains R code files used in the manuscript "Diversity loss from multiple interacting disturbances is regime-dependent” by Luke Lear, Hidetoshi Inamine, Katriona Shea, and Angus Buckling. The files should be in the same directory folder to run. See below for the description of the files: - data.csv contains the cfu counts from the samples taken on day 16 of the experiment. This file is used in code.Rmd. The file contains metadata in the header, so use read.csv(filename, comment.char="#") to read in the file. - code.Rmd contains all of the analyses performed for the manuscript, and plots Figures 2 to 5 of the main text and Figures S1 and S2 of the supplement. You need the following packages installed to run the code: rmarkdown, tidyverse, vegan, lme4, gridExtra, ggfortify, car, gllvm. - code.pdf is the rendered pdf of code.Rmd produced with the rmarkdown::render() function in R.