Category Archives: R

How to create separation plots in ggplot2

It is notoriously hard to quantify how well a regression model with a discrete response fits the underlying data. The usual suspect in linear regression is . which gives 1 – the ratio of residual variance to total variance of … Continue reading

Posted in ggplot2, R | Leave a comment

How to generate caterpillar plots in ggplot2

Creating caterpillar plots in ggplot2 Caterpillar plots are side-by-side displays of statistical estimates. They are widely used in multilevel regression to display random effects parameters, and typically they exhibit confidence intervals to vizualize uncertainty about the estimate. A striking feature … Continue reading

Posted in ggplot2, R | Leave a comment

Boxplots à la Tufte

In order to get a better understanding of what I am putting my audience through, I recently got myself a copy of Tufte’s classic “The Visual Display of Quantitative Information”. Among Tufte’s numerous terrific ideas you’ll find suggested improvements to … Continue reading

Posted in ggplot2, R, Tutorial | Leave a comment

Applied Coxcombs: The Quality of Democracy

As it happens, my department at the WZB Berlin Social Research Center now has a blog (http://democracy.blog.wzb.eu/). Naturally, I was volunteered, sorry, I volunteered to describe some of the department’s research. One project that I’ve been particularly active in for quite … Continue reading

Posted in Democracy measurement, ggplot2, R, Tutorial | Leave a comment

Plotting coxcombs using ggplot2

I am currently working on a paper concerning human rights violations in established democracies. Touchy as the subject is, I need diagrams that offer evidence quickly. Looking for inspiration I went through some classical visualizations and got stuck with Florence … Continue reading

Posted in ggplot2, R, Tutorial | Tagged , , , | 1 Comment