Data Study on Terrorism Across Regions
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.
The frequency of terrorist attacks is increasing over time, which presents a greater need for analysis to reveal trends and inferences. This data study used various visualization techniques in R to display the differences in attacks across countries and over time.
In order for the data to be clearly displayed for the user, a world map was used to exploit the differences across countries (displayed above). A choropleth map was used as the base layer of the map to display the frequency of attacks in which countries with high frequencies were represented by darker colors. Labels for each country showed the frequency of attacks since 1970, along with the most common type of attack, target, and weapon. The regions with the most activity were southern Asia, Middle East and North Africa, and the Western part of South America.
Blue markers were plotted on top of the base map to display the coordinates of each attack. Because many attacks were included in the dataset, only attacks in 2017 were plotted to ensure the map wouldn't be operating at a slow speed (however, all data points were used for all other aspects of the project). A slider at the bottom allowed the user to view the changes in attack throughout 2017 in which steps on the slider represents months of the year. Observing the points change over time revealed that the general locations targeted did not drastically change throughout 2017. In other words, if a city was targeted early in 2017, it was likely to be targeted again in later months.
Data on Attack Types by Region
Another visualization tool used was an interactive stacked bar graph displaying the frequency of each attack type. The application gives the user the opportunity to add and subtract regions, depending on the parts of the world that he/she wish to explore. This chart shows that bombing attacks are the most common globally and armed attack is the second most. Additionally, it appears that regardless the type of attack, the distribution across regions stays constant in which the Middle East and North Africa, South Asia, and South America account for the greatest frequencies.
Attacks Over Time
The last method of visualization was a plot of attacks from 1970 to 2017. The frequency over attacks is clearly rising over time with its peak being in 2014. Data from 1993 was excluded by the creators of the database. The graph reveals a high activity of terrorism in Central America and the Caribbean during the 1980's, but little activity in that region after that. In the last decade, the Middle East and North Africa, South Asia, and Sub-Saharan Africa have accounted for the overwhelming majority of attacks.
The purpose of this study was to allow the user to clearly visualize differences in terrorist attacks across regions and time. The distribution of each type was shown to be fairly constant across regions, while the distribution across regions did not remain constant over time. An idea for further analysis would be to display a network between origin country of the attacker and the targeted country. This database did not include the nationality of the attacker, so a network between countries could not be displayed on the map.
R code for this project can be found here.