Skip to content

HistoricalGeobiology/Sperling.Road.River

Repository files navigation

This repository contains the required R code and data files to produce the all of the main text geochemistry 
figures and statistical analyses in ‘A long-term record of early to mid-Paleozoic marine redox change’ 
Erik A. Sperling, Michael J. Melchin, Tiffani Fraser, Richard G. Stockey, Una C. Farrell, Liam Bhajan, Tessa N. Browne,
Devon B. Cole, Benjamin C. Gill, Alfred Lenz, David K. Loydell, Joseph Malinowski, Austin J. Miller, 
Stephanie Plaza-Torres, Beatrice Rodewald, Alan D. Rooney, Sabrina A. Tecklenburg, Jacqueline M. Vogel, 
Noah J. Planavsky, Justin V. Strauss.

Before running the R scripts included, download this folder and set it as your R working directory. 
Required data files should then load when called in each script, and pdf files will save within the same folder.

To replicate the analyses and plots presented here, the following R packages are required:
deeptime
dplyr
egg
ggplot2
simpleboot
rpart
rpart.plot

The deeptime package is currently only available on GitHub, and will need to be installed from there to reproduce
Figure 3. This can be achieved by running the following commands in your R console (ignore the first line 
if you already have devtools installed).
install.packages("devtools")
devtools::install_github("willgearty/deeptime")

All other packages can be installed from CRAN. These scripts have been tested using R version 3.6.2 - 
Copyright (C) 2019 The R Foundation for Statistical Computing.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages