<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="http://www.r-bloggers.com/iraq-wikileaks-analysis-with-r/"></div></div><div><a data-url="http://www.r-bloggers.com/iraq-wikileaks-analysis-with-r/" data-counturl="http://www.r-bloggers.com/iraq-wikileaks-analysis-with-r/" data-count="horizontal" data-text="Iraq-Wikileaks Analysis with R" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://r-datameister.blogspot.com/2016/06/iraq-wikileaks-analysis-with-r.html"> Fear and Loathing in Data Science</a></strong>, and kindly contributed to <a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers)</a> </div>
<h3><span><b><i>I</i></b></span><span><span><b><i>n a place of extreme violence and devoid of order, the practical subsumes the principle. I drifted down the path of bribery and corruption endemic to the streets of Baghdad”<span>.</span></i></b></span></span></h3>
<h3><span></span><span><span><b>Jason Whiteley, Father of Money: Buying Peace in Baghdad</b></span></span></h3>
<div></div>
<div><a target="_blank" href="https://2.bp.blogspot.com/-BHbpEzrzP0g/V2CiOyceymI/AAAAAAAAAXQ/VoHw3VjdJEgM0_No4J0CoO6BTgOH_vOBwCLcB/s1600/download.png"><img height="377" width="400" src="https://2.bp.blogspot.com/-BHbpEzrzP0g/V2CiOyceymI/AAAAAAAAAXQ/VoHw3VjdJEgM0_No4J0CoO6BTgOH_vOBwCLcB/s400/download.png" border="0"></a></div>
<p><span><span><b><br></b></span></span><span><span><b><br></b></span></span>
<div><span>As I mentioned in a previous post, I wanted to explore the Wikileaks data of the US Military’s </span><span>reported Significant Activities (SIGACTS).  </span><span lang="EN-GB">It will be a subset of the famous Wikileaks classified US military documents.</span><span> </span><span lang="EN-GB">  Private Bradley Manning provided this material to Wikileaks.  He is now behind bars, receiving a 35-year sentence in 2013.  The subset of these documents I will use is available on The Guardian’s datablog website at this link:</span><span></span></div>
<div></div>
<div><span><a target="_blank" href="http://www.theguardian.com/news/datablog/2010/oct/23/wikileaks-iraq-data-journalism#data">http://www.theguardian.com/news/datablog/2010/oct/23/wikileaks-iraq-data-journalism#data</a></span><span></span></div>
<div></div>
<div><span lang="EN-GB">The Guardian created this subset by selecting only those SIGACT reports that were associated with deaths of personnel and also that they felt did not compromise confidential sources.  It is stored in a Google Fusion Table.</span></div>
<div><span lang="EN-GB"><br></span></div>
<div><span lang="EN-GB">The code provided merely scratches the surface of analysis that one can do with the data set of roughly 52,000 SIGACTs.  What I show is how to pull the data into R, conduct some basic data wrangling, create a subset, perform a cluster analysis and finally, build maps.  In creating the maps, I show how to create a static map with <b><i>ggplot</i></b>package as well as an interactive map with the <b><i>leaflet</i></b> package.</span></div>
<div><span lang="EN-GB"><br></span></div>
<div><span lang="EN-GB">The subset of the data will focus on 2009 and the area assigned to Multi-National Division Baghdad since I spent 10 months of that year there and roughly 99% of the time in that Division’s Area of Responsibility.</span></div>
<div><span lang="EN-GB"><br></span></div>
<div><span lang="EN-GB">The analysis with code and commentary is on RPubs.com at the following link:</span></div>
<p>
<div></div>
<div><span><a target="_blank" href="http://rpubs.com/Custer/wikileaks">http://rpubs.com/Custer/wikileaks</a></span></div>
<div><span><span><br></span></span></div>
<div><span><span><br></span></span></div>
<div><span><span><br></span></span>
<div>
<div>
<div>
<div></div>
</div>
</div>
</div>
</div>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="http://www.r-bloggers.com/iraq-wikileaks-analysis-with-r/"></div></div><div><a data-url="http://www.r-bloggers.com/iraq-wikileaks-analysis-with-r/" data-counturl="http://www.r-bloggers.com/iraq-wikileaks-analysis-with-r/" data-count="vertical" data-text="Iraq-Wikileaks Analysis with R" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://r-datameister.blogspot.com/2016/06/iraq-wikileaks-analysis-with-r.html"> Fear and Loathing in Data Science</a></strong>.</div>
<hr>
<a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="http://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="http://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="http://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="http://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="http://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="http://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="http://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="http://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="http://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="http://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="http://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="http://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="http://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="http://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="http://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="http://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/anS8QK52mrg"></a></div>