This repository contains code needed to reproduce the article:
Falster, Gallagher et al (2021) AusTraits, a curated plant trait database for the Australian flora Scientific Data (in press)
also available as a preprint at
Falster, Gallagher et al (2021) AusTraits – a curated plant trait database for the Australian flora bioRxiv: 2021.01.04.425314. doi: 10.1101/2021.01.04.425314
The code included should enabled you to recreate the entire paper, including all figures and tables.
All analyses were done in R
. You need to download this repository, and then open an R session with working directory set to the root of the project.
We use a number packages, which can be easily installed by:
devtools::install_deps()
You'll need to download version 3.0.2 of the AusTraits data and save it in the folder data
url <- "https://zenodo.org/api/files/9c997956-8254-4fcc-a17b-5fe1fd079022/austraits-3.0.2.rds"
utils::download.file(url=url, destfile="data/austraits-3.0.2.rds", method="auto", quiet = FALSE, mode = "wb", cacheOK = TRUE)
To generate all figures run code in build_figures.R
.
To generate all tables and main text run code in ms.Rmd
.