SquareOne Analyses in R
This repository contains the functions necessary to download and process the Portal Project data in preparation for the analyses in Diaz and Ernest, "Maintenance of community function through compensation breaks down over time in a desert rodent community" (in review at Ecology; preprint: https://www.biorxiv.org/content/10.1101/2021.10.01.462799v1). These functions are structured as a lightweight R package (soar
) to facilitate standardized testing and documentation, and keep functions (which are called multiple times in the paper analyses) separate from scripts (that are run once to produce specific analyses/figures). The one-time analysis and figure generation scripts, as well as the manuscript itself, are located in https://github.com/diazrenata/squareone/ (Zenodo https://doi.org/10.5281/zenodo.5544361).
To replicate the analyses in the manuscript,
soar
package, either by running remotes::install_github("diazrenata/soar")
or by downloading this repository/Zenodo archive and installing it from source.analysis
folder as .Rmd documents. squareone/analyses/s1_model_results.Rmd
) will reproduce the figures and/or tables as presented in the manuscript and supplemental materials, as journal-ready formatted Word documents. Running portions of the .Rmd documents interactively allows you to work through individual analyses and explore the data more fully. Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.