Mapping the Massachusetts election upset with R

January 25, 2010

(This article was first published on Revolutions, and kindly contributed to R-bloggers)

The blog Offensive Politics has done some in-depth analysis of the recent Senate special-election upset in Massachusetts, comparing the results of victorious Republican candidate Scott Brown to those of the unsuccessful Republican Presidential candidate John McCain in 2008. It’s pretty clear that Brown out-performed expectations with Democratic voters, but this chart of the change in Democratic voters from 2008 to 2010 makes the contrast stark:


You can find more charts, and the data and R code to reproduce them, at the link below.

Update 10:56: Political scientist Boris Shor has also analyzed this election, concluding that Scott Brown is more liberal than current Senate Republican Olympia Snowe and congressional Republican challenger Dede Scozzafava (who lost her primary amongst claims she was too liberal). Incidentally, Boris relies on the big-data capabilities of REvolution R Enterprise for Windows to make these analyses possible.

Offensive Politics: Mapping MA election results

To leave a comment for the author, please follow the link and comment on their blog: Revolutions. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Tags: ,

Comments are closed.


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)