knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" ) # Please put your title here to include it in the file below. Title <- "Data and Code for NCS - SDG analyses"
This repository contains data and code used to obtain results of the paper Mariani et al. (202?) - Co-benefits and trade-offs between Natural Climate Solutions and Sustainable Development Goals submitted in Nature Climate Change.
:file_folder: rawdata directory contains the table of positive and negative links used to perform all analysis. See Material & Methods section of the paper for more details. This directory also contains SDG's and NCS's icons use in the figures of the paper.
:file_folder: results directory contains all .RData files generated during the analyses.
:file_folder: R directory contains the functions used to perform all the analyses. The 4 main importants .R files are:
:file_folder: figures directory contains all figures (format .png) in the paper.
:file_folder: make_results contains detailled R scripts to produce figures and run analysis using all functions in R.
The :briefcase: make.R file allows to produce all analyses and render the corresponding plots by running R scripts in make_results.
The :hammer: dev_history.R file allows to rebuild our research compendium from scratch.
This research compendium has been developed using the statistical programming language R. To work with the compendium, you will need installed on your computer the following softwares:
You can download the compendium by cloning this repository. You can follow this tutorial, section "Clone the repository with RStudio" to clone the repository.
Once the compendium is cloned, follow these steps:
.Rproj file in RStudio.Note that R version 3.6.2 or later is required. Run this command utils::sessionInfo() to check your R version.
You can uptade your R version here.
utils::sessionInfo()
Text and figures: CC-BY-4.0
Code: See the DESCRIPTION file
Data: CC-0 attribution requested in reuse
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.