Skip to contents

Worldbank data visualization

Installation Instructions

install R

installation instructions can be found here: https://cran.r-project.org/
## install RStudio IDE (optional but a good idea)
installation instructions can be found here: https://posit.co/downloads/

open RStudio and type in the console:

install.packages("devtools")
library(devtools)
install_github("sedzinfo/worldbank")

Note: install_github() may fail for this repository because package data files are tracked with Git LFS and GitHub source tarballs can contain LFS pointer files instead of binary .rda data.

Alternative installation

Since the data range from 1960 onwards and there are thousands of indicators, we use git large file storage. Since the last update where the data file became larger than 100mb git will not accept directly so large files. As a result the traditional installation may not work. Use one of the following reliable options:

  1. Clone the repository with Git LFS enabled and install locally:
git lfs install
git clone https://github.com/sedzinfo/worldbank.git

Then in R:

devtools::install_local("worldbank")
  1. Download the full repository and regenerate package data locally by running financial_indicators.R and then generate_package.R.

Update data

In order to update the data: 1. run the financial_indicators.R script 2. run the generate_package.R script

The data updates almost yearly so there is no need for frequent updates

Features

  • ๐Ÿ“Š Country Comparison: Compare a selected indicator across multiple countries over time
  • ๐Ÿ“ˆ Indicator Comparison: Analyze multiple indicators for a specific country
  • ๐Ÿ‘ฅ Population Pyramids: Visualize demographic structures by age and gender
  • ๐Ÿ“‰ Rankings: Bar chart rankings of countries by selected indicators
  • ๐Ÿ” Scatterplots: Explore relationships between two indicators
  • ๐Ÿ—บ๏ธ Animated Maps: Interactive choropleth maps showing temporal changes
  • ๐Ÿ“‹ Data Explorer: Browse the complete dataset in tabular format

Data

The package includes World Bank indicators covering: - Economic indicators (GDP, trade, inflation) - Social indicators (education, health, employment) - Demographic data (population by age and gender) - Development metrics spanning from 1960 to present

Data source: World Bank Open Data


Git LFS Setup

Large files (e.g.ย datasets) are stored using Git LFS. Follow the steps below to clone the repository and retrieve them.

1. Install Git LFS (one-time setup)

Ubuntu/Debian:

sudo apt install git-lfs
git lfs install

Mac:

brew install git-lfs
git lfs install

Windows:

Download and run the installer from https://git-lfs.com, then:

git lfs install

2. Clone the repository

git clone https://github.com/sedzinfo/worldbank.git
cd worldbank

3. Pull the LFS files

git lfs pull

Note: If you cloned the repository before installing Git LFS and large files appear as small pointer files, run:

git lfs install
git lfs pull

To verify that LFS files downloaded correctly:

git lfs ls-files

Screenshots


StarsWatchersRepo SizeOpen IssuesForksLast CommitContributorsLicenseWorkflow Status