Human Development Index in Brazil

Visualization app using leaflet package from RStudio.

Julio Trecenti

What is it

  • The Human Development Index (HDI) is a composite statistic of life expectancy, education, and per capita income indicators, which is used to rank countries into four tiers of human development (font: wikipedia).
  • The United Nations for Development Programme (UNDP) calculated the index for each city in Brazil, based on Census data of 1991, 2000 and 2010.
  • This is a visualization app for the HDI of the cities in Brazil.
  • It is possible to see in the map how the HDI, Population and Gini index are distributed across the cities in Brazil.

Usage

  • Access the app here.
  • Read the description.
  • Modify the controls on the left, selecting year, multiple states, variable, maximum number of cities to display and size of the circles.
  • Click on the circles to see the popups.
  • See the full dataset below the map.

About leaflet package

To use leaflet package, install from github

devtools::install_github('rstudio/leaflet')

Create a simple map

library(leaflet)
leaflet() %>% addTiles() %>% addMarkers(lng=174.768, lat=-36.852)

To see a complete reference to this package, access this link.

Data and some findings in the application

load('undp_hdi_brazil.rda')
head(undp_hdi_brazil, 3)
##   id year    state                  city   hdi hdi_education hdi_life
## 1  1 1991 Rondônia ALTA FLORESTA D'OESTE 0.329         0.112    0.617
## 2  2 1991 Rondônia             ARIQUEMES 0.432         0.199    0.684
## 3  3 1991 Rondônia                CABIXI 0.309         0.108    0.636
##   hdi_income population gini     lat     lon
## 1      0.516      22835 0.63 -11.929 -61.996
## 2      0.593      55018 0.57  -9.913 -63.041
## 3      0.430       5846 0.70 -13.492 -60.545
  • The city with the highest HDI in Brazil, in 2010, is 'São Caetano do Sul'.
  • The city with the highest Gini index in Rio de Janeiro state is Rio de Janeiro city.
  • Try to find something by yourself ;)