As mentioned earlier, yesterday was Pi Day so a bunch of statisticians and other such nerds celebrated at the new(ish) Artichoke Basille near the High Line. We had three pies: the signature Artichoke, the Margherita and the Anchovy, which was delicious but only some of us ate. And of course we had our custom cake from Chrissie Cook.
Less than a month ago, Drew Conway suggested that our R user group present an analysis of the WikiLeaks data. In that short time he, Mike Dewar, John Myles White and Harlan Harris have put together a beautiful visualization of attacks in Afghanistan. The static image you see here has since been animated which is a really nice touch.
Within a few hours of them posting their initial results the work spread across the internet, even getting written up in Wired’s Danger Room. Today, they got picked up by the New York Times where you can see the animation.
The bulk of the work was, of course, done in R. I remember talking with them about how they were going to scrape the data from the WikiLeaks documents, but I am not certain how they did it in the end. As is natural for these guys they made their code available on GitHubso you can recreate their results, after you’ve downloaded the data yourself from WikiLeaks.
Briefly looking at their code I can see they used Hadley Wickham’sggplot and plyr packages (which are almost standard for most R users) as well as R’s mappingpackages. If you want to learn more about how they did this fantastic job come to the next R Meetup where they will present their findings.