Leaf mass per area, not total leaf area, drives differences in above-ground biomass distribution among woody plant functional types
This repository contains code needed to reproduce the article:
Duursma RA, Falster DS, "Leaf mass per area, not total leaf area, drives differences in above-ground biomass distribution among woody plant functional types", New Phytologist (accepted 2016-04-28).
All analyses were done in
R. To compile the paper, including figures and supplementary material we use the remake package for R. You can install remake using the
install.packages("devtools") to install devtools if needed.)
remake package also depends on
storr, install it like this:
Next 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 of packages, these can be easily installed by remake:
The above command may not install the baad.data package correctly, for that do:
Then, to generate all figures, analyses, and manuscript (PDF, using LaTeX), simply do:
The last step of making the pdf requires a reasonably complete LaTeX installation (e.g. MacTeX for OSX or MikTex for windows). The LaTeX compilation will depend on a few packages from CTAN, make sure to allow automatic package installation by your LaTeX distribution.
You can also decide to reproduce only the figures, to do this run:
To make only any of the figures, run a command like
The list of targets can be gleaned from the file
If you find remake confusing and prefer to run plain R, you can use remake to build a script
build.Rthat produces a given output, e.g.
Many thanks to Rich FitzJohn for helping us develop this work flow.