2018-10-10 Data compiled by: Fernanda Adame Code by: CJ Brown
This is supplementary material prepared in support of the publication:
Adame, Brown, Bejarano, Herrera-Silveira, Ezcurra, Kauffman, Birdsey. In Press. The undervalued contribution of mangrove protection in Mexico to carbon emission targets. Conservation Letters. DOI: 10.1111/conl.12445
Please cite that publication if you use this code.
An interactive web app that runs these models is available from the Global Wetlands Program.
We identified a bug in the function for estimating carbon emissions, this has been fixed in the app (10-10-2018), so please pull the latest update if you downloaded this package before that date. The bug caused under-estimation of emissions at very high deforestation rates (>10% pa). We have not yet updated the equations in this package for estimating deforestation and degradation. If degradation is important to you, let me know and I may be able to move fixing the bug further up my priority list.
Please contact firstname.lastname@example.org or pull a request on this github project if you have any queries.
To use package, open R and type:
Then to access the package’s functions and data:
The raw data and scripts used to generate the projections in the paper are available under the /data-raw folder:
1_prep_data.R will recreate the internal dataframes.
2_projections.R runs projections and creates figure 3 of the paper.
3_historic.R estimates historic emissions from observed deforestation.
Code for the shiny application is under /inst.
A bibtex file for citing this work is in file CITATION.