Analyses associated with manuscript "How to engineer a habitable planet: The rise of marine ecosystem engineers through the Phanerozoic" by Alison Cribb and Simon Darroch in Palaeontology
Corresponding author: A.T.Cribb@soton.ac.uk
This repository contains all data and R scripts needed to reproduce the analyses and figures in the manuscript main text and supplementary materials. You can either run the analyses and generate new Output files, or you may use the Output files already in the repository that are used to generate the published manuscript. Note that due to the subsampling procedures involving a random number generator, your results may vary slightly from the published results. If you download this repository, set it as your working directory and everything should run smoothly. Should you have any problems, questions, or wish to make any modifications for your own publication, please contact me at the email address above.
There are three datasets in Data:
Phanerozoic_clean_final.RData
- contains the cleaned and stratigraphically binned (largely following Kocsis et al. 2019 ddPhanero protocol with additional cleaning of formation data) Phanerozoic data. The raw PBDB data was downloaded 1 November 2023. This dataset is used to generate a new list of bioturbators in each script, but you can also use the bioturbator dataset below.Reef_Ecosystem_Engineers_final.RData
- contains the full Phanerozoic reef dataset with reef-builder classifications assigned in an REE_Classification category (REE = Reef Ecosystem Engineer)Bioturbators_data.RData
- contains the full Phanerozoic bioturbators dataset, which is also generated each time at the top of any analysis script that focuses on bioturbators. This is not called in any of the analyses, but it may be useful to have for reference.
There are five main scripts in Analyses:
EEDominance_bioturbators.R
- analyses for the dominance of bioturbators to produce Figure 1EERelabund_bioturbators_feeding.R
- analyses to get the relative abundance of bioturbator feeding ecologies to produce Figure 2EERelabund_bioturbators_taxa.R
- analyses to get the relative abundance of bioturbator phyla to produce Figure 3EEDominance_reefs.R
- analyses for the dominance of reef-builders to produce Figure 4EERelabund_reefs.R
- analyses to get the relative abundance of reef-builder groups to produce Figure 5
Additionally, there are versions of EEDominance_bioturbators.R
and EEDominance_reefs.R
specific to shallow, deep, siliciclastic, and carbonate facies in the within environments folder. These will produce the output files needed for Supplementary Figures 1 and 2 for bioturbators and Supplementary Figures 4 and 5 for reef-builders.
The Output folder already contains the .RData files for the results in the manuscript. If you re-run the analyses, these will automatically be overwritten with your own results. Note that results may vary slightly due to the random number generator in the subsampling procedures.
Finally, there are four scripts in Figures:
PlottingOutput_Bioturbator_Dominance.R
– generates Figure 1 and the within-environment results for Supplementary Figures 1 and 2PlottingOutput_Bioturbator_RelativeAbundance.R
- generates the relative abundance figures for phyla and feeding ecologies in Figures 2 and 3, respectivelyPlottingOutput_Reef_Dominance.R
- generates Figure 4, the within-environment results for Supplementary Figures 4 and 5, and contains the brief (raw) analysis and plotting output for Supplementary Figure 3PlottingOutput_Reef_RelativeAbundance.R
- generates the relative abundance figures for reef-builder groups in Figure 5