Mapping the Chicago mayoral election

[This article was first published on Revolutions, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Rahm Emanuel is now Mayor of Chicago, having successfully defended a court challenge to his candidacy and then 5 rivals in the February 22 election. The Chicago Tribune has put together an interactive map of the results (color-coded by the winner in each precinct), but for R hackers who would like to create similar maps of other elections, the blog Offensive Politics shows us how using the Chicago election as a guide. In the post, you can find a step by step guide on converting the return data file, processing shape files to create maps, and mapping the results to the precincts to create choropleths like this:

Emanuel
All the code is available in a github repository, and would serve as a great framework for your own election mapping projects.

Offensive Politics: Mapping the 2011 Chicago Mayoral Democratic Primary

To leave a comment for the author, please follow the link and comment on their blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)