Instructions with code of how to create a bar race ranking GIF animation in R like the one below:
Medium post available here.
🚩 ggflags not available on CRAN
The package responsible for assigning flags to country codes called "ggflags" is not available on CRAN. That's why one needs to install it from GitHub repo. This can be accomplished using the line below:
devtools::install_github("ellisp/ggflags")
🚩 devtools requires Rtools
In order to install packages from GitHub, one needs a package called 'devtools'. It can be installed with command:
install.packages("devtools")
However, the installation of devtools needs to be preceeded by installation of 'Rtools', available here.
MIT License ©️ 2019-2020 Kamil Szymkowski