Add circular flags to maps and graphs with ggflags package in R

Packages we will need: Click here to add rectangular flags to graphs and click here to add rectangular flags to MAPS! Apropos of this week’s US news, we are going to graph the number of different or autocoups in South America and display that as both maps and bar charts. According to our pals at the Wikipedia, a self-coup, or autocoup (from the Spanish autogolpe), is a form of … Continue reading Add circular flags to maps and graphs with ggflags package in R

Add Correlates of War codes with countrycode package in R

One problem with merging two datasets by country is that the same countries can have different names. Take for example, America. It can be entered into a dataset as any of the following: USA U.S.A. America United States of America United States US U.S. This can create a big problem because datasets will merge incorrectly if they think that US and America are different countries. … Continue reading Add Correlates of War codes with countrycode package in R