Originally from the Economist, great interactive explanation of which can be found here. This package makes that data available and recalculates adjusted index figures on different IMF GDP data to increase coverage from 2000-2020 from 2011-2020.
Dimensions of the dataset are 1329x25, covering 55 countries from April 2000 to July 2020 and 33 unique dates.
Install and load:
library(devtools)
install.github("danielnjoo/bigmacdata")
library(bigmacdata)
The below example shows a lineplot comparing IMF-GDP adjusted Big Mac USD Premia/Discount.
library(bigmacdata)
bigmacdata %>%
filter(date==max(bigmacdata$date)) %>%
mutate(over=ifelse(imf_USD_adjusted>0, 1, 0)) %>%
ggplot(aes(
factor(name, levels=name[order(imf_USD_adjusted)]),
imf_USD_adjusted,
col=as.factor(over))) +
geom_linerange(aes(ymin=0, ymax=imf_USD_adjusted)) +
geom_point() +
coord_flip() +
theme(
axis.title.x = element_blank(),
axis.title.y = element_blank(),
legend.position = "none") +
labs(title="IMF GDP adjusted Big Mac USD Premia/Discount, July 2020")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.