/tech_test

Data viz of access improved sanitation around the world using Shiny

Technical Exercise

Guide

Part 1

The R markdown script can be found here. The output can be found here.

Part 2

The write up can be found here.

Details for Part 1

This visualizes the % of population with access to improved sanitation in different countries from 1960 until now. Even though we were asked to pull data from 1960 until now, data was only available from 1990-2015, so that visualization only visualizes those years.

Data Source

Data was retrieved from the World Bank API using the query for a specific indicator. Indicator code: SH.STA.ACSN.

There are two R packages that make it easier to get data from the World Bank API: WDI and wbstats. But as a learning exercise for working with the World Bank API, I decided to do it the harder way without using the packages.