The rapidly increasing ideology of the US Republican Party

October 18, 2012

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

The chart below comes by way of the is.R blog and shows the average ideology of the members of the United State House of Representatives within the Republican (red) and Democratic (blue) parties. (Other parties are shown in green.) The chart is shown as a time series, from the first US congress in 1789, to the most recent full congress (the 111th, from 2010). The 80th congress first met in 1947.

Ideology here is measured according to the DW-DOMINATE scale, a score that ranges from -1 (extremely liberal) to +1 (extremely conservative) based on legislative votes, and is designed to be comparable across time. (The source data is available for download at The width of each band represents the spectrum of all but the 10% most extreme legislators within each party; the dark dot shows the median. 

The graph shows that while both parties have always been distinct in their ideology, since about World War 1 there's at least been some slight overlap. All that changed in the early 70's though, as successive Republican congresses became increasingly more conservative in their voting records, while Democratic congresses remained much the same. Today, there's no ideological overlap between members of the two parties.

The chart above was created using the R language, and R programmers should take a look at the source code posted at the is.R blog. It's a great example of using the ddply function (from the plyr package) to aggregate the individual legislator ideology scores into medians and quantiles by party and congress. The ggplot function was used to create the chart itself, by overlaying the interquartile range and median points over a line chart of the 90% range. For more details, check out the full post at the link below.

is.R: The distribution of ideology in the U.S. House (with plyr)

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.


Mango solutions

RStudio homepage

Zero Inflated Models and Generalized Linear Mixed Models with R

Dommino data lab

Quantide: statistical consulting and training



CRC R books series

Six Sigma Online Training

Contact us if you wish to help support R-bloggers, and place your banner here.

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)