Analyzing bias in election polls with R

In Germany, the elections for the next Bundestag are coming up tomorrow:

So I got the polling data of the last 14 years from and used Python and Dataset to convert the data into a R-friendly structure, with one number per row, ending up with 27.1k rows in total. Then I put all my R skills together to create this nice colored scatterplot showing all the polls, on all the political parties in Germany.

Awesome analysis by Gregor Aisch, showing how some polling institutes consistently favor certain parties. Make sure you also check out his other work, especially in the cartography section of his blog.

Leave a Reply

Your email address will not be published. Required fields are marked *

I accept that my given data and my IP address is sent to a server in the USA only for the purpose of spam prevention through the Akismet program.More information on Akismet and GDPR.

This site uses Akismet to reduce spam. Learn how your comment data is processed.