Skip to content

Commit

Permalink
First clean commit
Browse files Browse the repository at this point in the history
  • Loading branch information
econandrew committed May 21, 2018
0 parents commit fe88615
Show file tree
Hide file tree
Showing 471 changed files with 497,104 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# History files
.Rhistory
.Rapp.history
# Session Data files
.RData
# Example code in package build process
*-Ex.R
# Output files from R CMD build
/*.tar.gz
# Output files from R CMD check
/*.Rcheck/
# RStudio files
.Rproj.user/
# produced vignettes
vignettes/*.html
vignettes/*.pdf
# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
.httr-oauth
# knitr and R markdown default cache directories
/*_cache/
/cache/
# Temporary files created by R markdown
*.utf8.md
*.knit.md
.Rproj.user
#Mac nonsense
.DS_Store
94 changes: 94 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Installation / replication steps

Depending on your own system setup you may not need to do all of this. This assumes you are starting from nothing (not even a sytem running R, but a lowest-common-denominator cloud hosted linux instance).

If you already have some sort of system, possibly running R already, you should probably start from step 2, 5, or 7. The library installs etc will vary depending on your package manager. We may eventually set up a docker image for the project to avoid this.

1. If necessary create your VM, for example I used the default AWS EC2 image.
- allocate public IP address
- open incoming TCP port 8787 in AWS console security group

2. Install docker
- Instructions here: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html

3. Launch docker with R Studio (based on [this guide](https://ropenscilabs.github.io/r-docker-tutorial/02-Launching-Docker.html))

```
docker run --rm -p 8787:8787 rocker/verse
```

4. Connect to your VM instance (e.g. if on AWS, ssh in from another local terminal). Then at the remote shell, connect do Docker:

```
# Get the container-id
docker ps
# Use the reported container-id below
docker exec -it <container-id> bash
```

5. install some system packages. From with the docker shell

```
apt-get update
# for mogrify
apt-get install imagemagick php-imagick -y
# for proj4
apt-get install libproj-dev proj-data proj-bin -y
# for rgdal
apt-get install libgdal-dev python-gdal gdal-bin -y
# for pdftools
apt-get install libpoppler-cpp-dev -y
```

6. Connect to RStudio at your VM's address port 8787. Login as 'rstudio' pass 'rstudio'.

7. Install some standard packages the base docker image lacks. In RStudio console

```
install.packages(c("countrycode","ggalluvial","ggmosaic","pdftools","png","proj4" ,"readstata13","rgdal", "OECD"))
```

8. Clone the repo. In RStudio terminal

```
git clone https://github.com/worldbank/sdgatlas2018.git
```

8. Install some development packages we created. In RStudio console:

```
devtools::install_github("worldbank/wbgviz", subdir = "wbgdata")
devtools::install_github("worldbank/wbgviz", subdir = "wbgcharts")
devtools::install_github("worldbank/wbgviz", subdir = "wbgmaps")
devtools::install_github("worldbank/wbgviz", subdir = "wbggeo")
9. As of now `ggtreemap` doesn't work with the latest treemapify, so in RStudio console:
```
devtools::install_version("treemapify", version = "2.4.0")
devtools::install_github("econandrew/ggtreemap")
```
9. If you want to use the nearest open fonts
- In RStudio console
```
extrafont::font_import(system.file("fonts", package = "wbgcharts"))
```
- You will also need to install these fonts at system level (OS dependent)
10. Update the cached API data so everything runs smoothly. In RStudio console
```
wbgdata::refresh_wbcache()
```
11. Open the sdgatlas2018 project in RStudio
12. In RStudio console, the following we remake all figures from scratch.
```
source("make.R")
make_all("docs", styler = style_atlas_open)
```
95 changes: 95 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# SDG Atlas 2018 code for analysis & figures

This respository contains code and some data for the World Bank's Atlas of Sustainable
Development Goals 2018.

If you simply want to understand how a particular figure was derived, what
transformations were made and with what assumptions, it is probably easiest to
just browse the code on Github. To help navigate the repo, see 'Contents' below.

If you want to be able to rebuild some or all of the figures, see 'Installation'.

## Note on non-R maps

Fifteen more complex maps (rasters & other detail) were produced using QGIS. These
are not included in this repository due to the large file sizes associated with
raster map data.

They can be found in the World Bank Data Catalogue, along with an archive of this
respository, at:

TODO

## Contents

### *.R

Each chapter has an R script associated with it. Figures within the chapter are
self contained functions, with names that (usually) match the rendered figure's
filename.

With in each file, `make_all()` will re-render PNGs in the default style and location.

`make_all()` in `make.R` will re-render all the figures.

### docs/

Contains the rendered figures.

### inputs/

Contains any data which was not available via the World Bank or another API.

## Installation

A complete installation / replication guide is given in [INSTALL.md](INSTALL.md).

This repository depends on the [`wbgviz`](https://github.com/worldbank/sdgatlas2018) custom R packages.

Some parts depend a submodule of restricted data that we cannot make public.

https://github.com/worldbank/sdgatlas2018-restricted/

### To clone the restricted submodule as well (World Bank users)

To clone, first clone as usual then within the git folder hierarchy, then to get the submodules run

`git submodule update --init`

Alternatively to clone the repo including submodules in one go, you can try the `--recursive` flag:

`git clone --recursive`

## Errata

### Without history

We have corrected a small number of errors between finalization of the print publication and release of this repository. The history of these errata is not present in repository. Any further errata will be corrected as new commits.

#### docs/sdg4/fig_sdg4_school_facilities.png

Data for this figure are not currently published.

#### docs/sdg8/fig_sdg8_account_map2.png

Data were revised prior to finalization.

#### docs/sdg10/fig_sdg10_b40_explainer

Data were revised prior to finalization.

#### docs/sdg12/fig_sdg12_landfill_map.png

The data dates given in the subtitle were incorrectly listed as 2012-14.

#### docs/sdg12/fig_sdg12_recycle_compost_map

Figure updated to take a more conservative approach to handling 'no data' values.

#### docs/sdg5/fig_sdg5_domesticviolence.png

Incorrect/ambiguous source given.

### With history

None.
48 changes: 48 additions & 0 deletions about_the_atlas.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
library(ggplot2)
library(dplyr)
library(tidyr)
library(stringr)
library(extrafont)
library(forcats)
library(wbgdata)
library(wbgcharts)
library(wbgmaps)
library(wbggeo)
source("styles.R")

abouttheatlas_example <- function(startdate = 2011, enddate = 2016) {
indicator <- "SE.PRE.ENRR"
df <- wbgdata(wbgref$countries$iso3c, indicator, startdate = startdate, enddate = enddate, removeNA = TRUE)
df <- df %>%
group_by(iso3c) %>%
filter(date == max(date)) %>%
ungroup()
df <- df %>% right_join(data.frame(iso3c = wbgref$countries$iso3c, stringsAsFactors=FALSE))
df$bins <- supercut(df$SE.PRE.ENRR, c(
"0–25" = "[0,25)",
"25–50" = "[25,50)",
"50–75" = "[50,75)",
"75 and over" = "[75,Inf)"
))

figure(
data = df,
plot = function(df, style = style_atlas(), quality = "low") {
g <- wbg_choropleth(df, wbgmaps[[quality]], style, variable = "bins")
g$theme <- style$theme()
g
},
aspect_ratio = 1.5,
# title = "Despite evidence of the importance of pre-primary education, enrollment is still far from universal",
title = "Example: Despite its importance, enrollment in pre-primary education is not universal.",
note = "Note: Explanations about data selection, calculations and definitions appear in notes. a. Footnotes appear like this.",
subtitle = wbg_name(indicator = "Gross pre-primary enrollment ratio", mrv = df$date, denom = "%"),
source = paste("Source:", "UNESCO Institute for Statistics. World Development Indicators (SE.PRE.ENRR).")
)
}

make_all("docs/abouttheatlas/pdf", style_atlas_cmyk, figure_save_final_pdf)
make_all <- function(path = "docs/abouttheatlas", styler = style_atlas, saver = figure_save_draft_png) {
#page 1
saver(abouttheatlas_example(), styler, file.path(path, "abouttheatlas_example.png"), width = 5.7, height = 4)
}
3 changes: 3 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SDG Atlas 2018 output figures

The output figures are in this folder, organized by chapter. Each folder contains draft RGB PNG figures and a subfolder `/pdf` with final CMYK PDF figures.
Binary file added docs/sdg1/fig_sdg1_females_land_titles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg1/fig_sdg1_income_histogram_poverty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg1/fig_sdg1_map_cadaster_etc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg1/fig_sdg1_poor_number_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg1/fig_sdg1_poor_population_area_chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg1/fig_sdg1_pov_national_ur.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg1/fig_sdg1_sp_cash_transfer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg1/fig_sdg1_sp_program_spending.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg1/fig_sdg1_sp_quintile_targeting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg1/fig_sdg1_tenure_vs_rights.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg1/pdf/fig_sdg1_females_land_titles.pdf
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg1/pdf/fig_sdg1_map_cadaster_etc.pdf
Binary file not shown.
Binary file added docs/sdg1/pdf/fig_sdg1_poor_number_map.pdf
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg1/pdf/fig_sdg1_pov_national_ur.pdf
Binary file not shown.
Binary file added docs/sdg1/pdf/fig_sdg1_sp_cash_transfer.pdf
Binary file not shown.
Binary file added docs/sdg1/pdf/fig_sdg1_sp_program_spending.pdf
Binary file not shown.
Binary file added docs/sdg1/pdf/fig_sdg1_sp_quintile_targeting.pdf
Binary file not shown.
Binary file added docs/sdg1/pdf/fig_sdg1_tenure_vs_rights.pdf
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg10/fig_sdg10_b40_explainer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg10/fig_sdg10_b40_growth_faster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg10/fig_sdg10_b40_growth_slower.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg10/fig_sdg10_remittance_cost_time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg10/pdf/fig_sdg10_b40_explainer.pdf
Binary file not shown.
Binary file added docs/sdg10/pdf/fig_sdg10_b40_growth_faster.pdf
Binary file not shown.
Binary file added docs/sdg10/pdf/fig_sdg10_b40_growth_slower.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg10/pdf/fig_sdg10_remittance_cost_time.pdf
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg11/fig_sdg11_pm25_countries.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg11/fig_sdg11_pm25_delhi_time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg11/fig_sdg11_slum_urban_rural_pie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sdg11/fig_sdg11_urban_services_multiple.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg11/pdf/fig_sdg11_pm25_countries.pdf
Binary file not shown.
Binary file added docs/sdg11/pdf/fig_sdg11_pm25_delhi_time.pdf
Binary file not shown.
Binary file added docs/sdg11/pdf/fig_sdg11_slum_urban_rural_pie.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg12/fig_sdg12_ans_flow.png
Binary file added docs/sdg12/fig_sdg12_ans_rents_gni-LABELLED.png
Binary file added docs/sdg12/fig_sdg12_ans_rents_gni.png
Binary file added docs/sdg12/fig_sdg12_food_loss_map.png
Binary file added docs/sdg12/fig_sdg12_landfill_map.png
Binary file added docs/sdg12/fig_sdg12_mf_pc.png
Binary file added docs/sdg12/fig_sdg12_mf_region.png
Binary file added docs/sdg12/fig_sdg12_recycle_compost_map.png
Binary file added docs/sdg12/fig_sdg12_waste_stacked_bar.png
Binary file added docs/sdg12/pdf/fig_sdg12_ans_flow.pdf
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg12/pdf/fig_sdg12_ans_rents_gni.pdf
Binary file not shown.
Binary file added docs/sdg12/pdf/fig_sdg12_food_loss_map.pdf
Binary file not shown.
Binary file added docs/sdg12/pdf/fig_sdg12_landfill_map.pdf
Binary file not shown.
Binary file added docs/sdg12/pdf/fig_sdg12_mf_pc.pdf
Binary file not shown.
Binary file added docs/sdg12/pdf/fig_sdg12_mf_region.pdf
Binary file not shown.
Binary file added docs/sdg12/pdf/fig_sdg12_recycle_compost_map.pdf
Binary file not shown.
Binary file added docs/sdg12/pdf/fig_sdg12_waste_stacked_bar.pdf
Binary file not shown.
Binary file added docs/sdg13/fig_sdg13_climate_disasters_gdp.png
Binary file added docs/sdg13/fig_sdg13_co2_emissions_by_income.png
Binary file added docs/sdg13/fig_sdg13_co2_pop_pc_vs_absolute.png
Binary file added docs/sdg13/fig_sdg13_co2_ppm_mauna_loa.png
Binary file added docs/sdg13/fig_sdg13_co2_rcp_scenarios.png
Binary file added docs/sdg13/fig_sdg13_ndcs_by_sector_country.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg13/pdf/fig_sdg13_co2_ppm_mauna_loa.pdf
Binary file not shown.
Binary file added docs/sdg13/pdf/fig_sdg13_co2_rcp_scenarios.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg14/fig_sdg14_barrier_reef_temperature.png
Binary file added docs/sdg14/fig_sdg14_catches_fishing_sector.png
Binary file added docs/sdg14/fig_sdg14_dead_zones.png
Binary file added docs/sdg14/fig_sdg14_marine_stock_status.png
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg14/pdf/fig_sdg14_dead_zones.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg14/pdf/fig_sdg14_marine_stock_status.pdf
Binary file not shown.
Binary file added docs/sdg15/fig_sdg15_IWT_commit_map.png
Binary file added docs/sdg15/fig_sdg15_forest_area_change.png
Binary file added docs/sdg15/fig_sdg15_forest_area_share.png
Binary file added docs/sdg15/fig_sdg15_protected_map.png
Binary file added docs/sdg15/fig_sdg15_threatened_animals.png
Binary file added docs/sdg15/fig_sdg15_threatened_plants.png
Binary file not shown.
Binary file added docs/sdg15/pdf/fig_sdg15_IWT_commit_map.pdf
Binary file not shown.
Binary file added docs/sdg15/pdf/fig_sdg15_forest_area_change.pdf
Binary file not shown.
Binary file added docs/sdg15/pdf/fig_sdg15_forest_area_share.pdf
Binary file not shown.
Binary file added docs/sdg15/pdf/fig_sdg15_protected_map.pdf
Binary file not shown.
Binary file added docs/sdg15/pdf/fig_sdg15_threatened_animals.pdf
Binary file not shown.
Binary file added docs/sdg15/pdf/fig_sdg15_threatened_plants.pdf
Binary file not shown.
Binary file added docs/sdg16/fig_sdg16_battle_deaths.png
Binary file added docs/sdg16/fig_sdg16_birth_reg.png
Binary file added docs/sdg16/fig_sdg16_bribery_region.png
Binary file added docs/sdg16/fig_sdg16_fcas.png
Binary file added docs/sdg16/fig_sdg16_homicides_dotplot.png
Binary file added docs/sdg16/fig_sdg16_public_spending.png
Binary file added docs/sdg16/fig_sdg16_refugees.png
Binary file added docs/sdg16/fig_sdg16_regulatorygov_vs_gni.png
Binary file added docs/sdg16/pdf/fig_sdg16_battle_deaths.pdf
Binary file not shown.
Binary file added docs/sdg16/pdf/fig_sdg16_birth_reg.pdf
Binary file not shown.
Binary file added docs/sdg16/pdf/fig_sdg16_bribery_region.pdf
Binary file not shown.
Binary file added docs/sdg16/pdf/fig_sdg16_fcas.pdf
Binary file not shown.
Binary file added docs/sdg16/pdf/fig_sdg16_homicides_dotplot.pdf
Binary file not shown.
Binary file added docs/sdg16/pdf/fig_sdg16_public_spending.pdf
Binary file not shown.
Binary file added docs/sdg16/pdf/fig_sdg16_refugees.pdf
Binary file not shown.
Binary file added docs/sdg16/pdf/fig_sdg16_regulatorygov_vs_gni.pdf
Binary file not shown.
Binary file added docs/sdg17/fig_sdg17_PPP_investment_time.png
Binary file added docs/sdg17/fig_sdg17_aid_panel.png
Binary file added docs/sdg17/fig_sdg17_enterprise_exports.png
Binary file added docs/sdg17/fig_sdg17_fdi_remittances.png
Binary file added docs/sdg17/fig_sdg17_internet_by_income.png
Binary file added docs/sdg17/fig_sdg17_regional_disbursements.png
Binary file added docs/sdg17/fig_sdg17_trade_dtf.png
Binary file added docs/sdg17/pdf/fig_sdg17_PPP_investment_time.pdf
Binary file not shown.
Binary file added docs/sdg17/pdf/fig_sdg17_aid_panel.pdf
Binary file not shown.
Binary file added docs/sdg17/pdf/fig_sdg17_enterprise_exports.pdf
Binary file not shown.
Binary file added docs/sdg17/pdf/fig_sdg17_fdi_remittances.pdf
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg17/pdf/fig_sdg17_internet_by_income.pdf
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg17/pdf/fig_sdg17_trade_dtf.pdf
Binary file not shown.
Binary file added docs/sdg2/fig_sdg2_fooddeficit_time.png
Binary file added docs/sdg2/fig_sdg2_malnutrition_dimensions.png
Binary file added docs/sdg2/fig_sdg2_stunted_number.png
Binary file added docs/sdg2/fig_sdg2_stunted_quintile.png
Binary file added docs/sdg2/fig_sdg2_stunted_sex.png
Binary file added docs/sdg2/fig_sdg2_undernourish_map.png
Binary file added docs/sdg2/fig_sdg2_wasting_panel.png
Binary file added docs/sdg2/pdf/fig_sdg2_fooddeficit_time.pdf
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg2/pdf/fig_sdg2_stunted_number.pdf
Binary file not shown.
Binary file added docs/sdg2/pdf/fig_sdg2_stunted_quintile.pdf
Binary file not shown.
Binary file added docs/sdg2/pdf/fig_sdg2_stunted_sex.pdf
Binary file not shown.
Binary file added docs/sdg2/pdf/fig_sdg2_undernourish_map.pdf
Binary file not shown.
Binary file added docs/sdg2/pdf/fig_sdg2_wasting_panel.pdf
Binary file not shown.
Binary file added docs/sdg3/fig_sdg3_health_workforce.png
Binary file added docs/sdg3/fig_sdg3_impoverished_190_310.png
Binary file added docs/sdg3/fig_sdg3_life_expectancy.png
Binary file added docs/sdg3/fig_sdg3_number_10pc.png
Binary file added docs/sdg3/fig_sdg3_proportion_10pc.png
Binary file added docs/sdg3/fig_sdg3_pyramids_by_income.png
Binary file added docs/sdg3/fig_sdg3_road_mortality.png
Binary file added docs/sdg3/fig_sdg3_surgical_workforce.png
Binary file added docs/sdg3/fig_sdg3_uhc_service_index.png
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg3/pdf/fig_sdg3_health_workforce.pdf
Binary file not shown.
Binary file added docs/sdg3/pdf/fig_sdg3_impoverished_190_310.pdf
Binary file not shown.
Binary file added docs/sdg3/pdf/fig_sdg3_life_expectancy.pdf
Binary file not shown.
Binary file added docs/sdg3/pdf/fig_sdg3_number_10pc.pdf
Binary file not shown.
Binary file added docs/sdg3/pdf/fig_sdg3_proportion_10pc.pdf
Binary file not shown.
Binary file added docs/sdg3/pdf/fig_sdg3_pyramids_by_income.pdf
Binary file not shown.
Binary file added docs/sdg3/pdf/fig_sdg3_road_mortality.pdf
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg3/pdf/fig_sdg3_surgical_workforce.pdf
Binary file not shown.
Binary file added docs/sdg3/pdf/fig_sdg3_uhc_service_index.pdf
Binary file not shown.
Binary file added docs/sdg4/fig_sdg4_enrollment_vs_fertility.png
Binary file added docs/sdg4/fig_sdg4_gender_parity_by_level.png
Binary file added docs/sdg4/fig_sdg4_govt_education_spending.png
Binary file added docs/sdg4/fig_sdg4_pupil_teacher_ratios.png
Binary file added docs/sdg4/fig_sdg4_school_enrollment_funnel.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg4/pdf/fig_sdg4_gender_parity_by_level.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg4/pdf/fig_sdg4_pupil_teacher_ratios.pdf
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg5/fig_sdg5_child_marriage_15_18.png
Binary file added docs/sdg5/fig_sdg5_domesticviolence.png
Binary file added docs/sdg5/fig_sdg5_female_manager_owner.png
Binary file added docs/sdg5/fig_sdg5_law_gender_hiring.png
Binary file added docs/sdg5/fig_sdg5_unpaid_work.png
Binary file added docs/sdg5/pdf/fig_sdg5_child_marriage_15_18.pdf
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg5/pdf/fig_sdg5_domesticviolence.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg5/pdf/fig_sdg5_law_gender_hiring.pdf
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg5/pdf/fig_sdg5_unpaid_work.pdf
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg6/fig_sdg6_at_least_basic_water_map.png
Binary file added docs/sdg6/fig_sdg6_global_sanitation_ladder.png
Binary file added docs/sdg6/fig_sdg6_global_water_ladder.png
Binary file added docs/sdg6/fig_sdg6_hand_washing_by_quintile.png
Binary file added docs/sdg6/fig_sdg6_piped_water_on_premises.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg6/pdf/fig_sdg6_global_water_ladder.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg7/fig_sdg7_energy_intensity.png
Binary file added docs/sdg7/fig_sdg7_energy_intensity_by_sector.png
Binary file added docs/sdg7/fig_sdg7_modern_renewable_by_income.png
Binary file added docs/sdg7/fig_sdg7_renew_share_TFEC.png
Binary file added docs/sdg7/pdf/fig_sdg7_energy_intensity.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg7/pdf/fig_sdg7_renew_share_TFEC.pdf
Binary file not shown.
Binary file added docs/sdg8/fig_sdg8_account_map2.png
Binary file added docs/sdg8/fig_sdg8_emp_gap_number_panel.png
Binary file added docs/sdg8/fig_sdg8_emp_sector_panel.png
Binary file added docs/sdg8/fig_sdg8_findex_panel_dimensions2.png
Binary file added docs/sdg8/fig_sdg8_gdp_pc_ldcs.png
Binary file added docs/sdg8/fig_sdg8_labor_stat_GDP_PC.png
Binary file added docs/sdg8/fig_sdg8_sector_map.png
Binary file added docs/sdg8/fig_sdg8_wage_gender.png
Binary file added docs/sdg8/pdf/fig_sdg8_account_map2.pdf
Binary file not shown.
Binary file added docs/sdg8/pdf/fig_sdg8_emp_gap_number_panel.pdf
Binary file not shown.
Binary file added docs/sdg8/pdf/fig_sdg8_emp_sector_panel.pdf
Binary file not shown.
Binary file not shown.
Binary file added docs/sdg8/pdf/fig_sdg8_gdp_pc_ldcs.pdf
Binary file not shown.
Binary file added docs/sdg8/pdf/fig_sdg8_labor_stat_GDP_PC.pdf
Binary file not shown.
Binary file added docs/sdg8/pdf/fig_sdg8_sector_map.pdf
Binary file not shown.
Binary file added docs/sdg8/pdf/fig_sdg8_wage_gender.pdf
Binary file not shown.
Binary file added docs/sdg9/fig_sdg9_hitech_map.png
Binary file added docs/sdg9/fig_sdg9_patents.png
Binary file added docs/sdg9/fig_sdg9_rai_pop_no_access.png
Binary file added docs/sdg9/fig_sdg9_sector_share_multiples.png
Binary file added docs/sdg9/pdf/fig_sdg9_hitech_map.pdf
Binary file not shown.
Binary file added docs/sdg9/pdf/fig_sdg9_patents.pdf
Binary file not shown.
Binary file added docs/sdg9/pdf/fig_sdg9_rai_pop_no_access.pdf
Binary file not shown.
Binary file added docs/sdg9/pdf/fig_sdg9_sector_share_multiples.pdf
Binary file not shown.
22 changes: 22 additions & 0 deletions inputs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# SDG Atlas 2018 data sources

The majority of the data for the Atlas comes from the World Development Indicators, and
is accessed directly using the World Bank Data API via the `wbstats` R package
and our custom internal wrapper of that `wbgdata()`.

However, a substantial minority of the figures use data from other sources, including
other World Bank datasets, datasets published by other international organizations,
and academic datasets.

These other datasets are archived within these folders, by chapter / goal.

A small number of datasets related to goal 7 and goal 13 are restricted from
distribution. These have been removed from the restricted/ subfolder, and
you will not be able to rebuild the figures that rely on these datasets. For
further information on these datasets in particular, contact any of:

Tariq Khokhar <[email protected]>

Andrew Whitby <[email protected]>

Umar Serajuddin <[email protected]>
Loading

0 comments on commit fe88615

Please sign in to comment.