This post shows you how to import the global oil production and consumption data between 1980 and 2017 from the BP statistical review of world energy 2018 report and create different types of plots using ggplot2 package. In addition, you will see how to create an animated map in R with gganimate package using US and Canada annual oil consumption data.
The project consists of three parts:
1. Installing and loading tidyverse (a collection of very usefull R packages), gganimate, and readxl packages.