Introducing regional maps
We encounter maps on a daily basis, be it for directions or to infer information regarding the distribution of data. Maps have been widely used to plot various types of data in R.
The following visualization relates to the debt to GDP ratio in the European Union. Users can hover over the visualization and get more information related to the data. The visualization is inspired by the New York Times article on the same issue.
We need to install and load the
googleVis package in R:
How to do it…
For the purpose of this recipe, we will import the data in R using the ...