# No surprises: More people tweet more. Visualizing twitter counts during election day.

**Rcrastinate**, 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.

As if the R world needed another example of Twitter visualizations, right? Well, here we go anyway.

At the beginning of 2013, Pablo Barberá released the first version of his R package ‘streamR‘ (CRAN link). With this package, you can tap into the streaming capabilities of the Twitter API. I did so for 10 consecutive days. Luckily, one of those days was September, 22nd – the day of the ‘Bundestagswahl’ (parliamentary elections) in Germany.

I’ve decided to put the code at the end of this post. If you want to try things out, you can find the code by scrolling to the bottom. Please note, that you may not be able to replicate all of this because you do not have the Twitter stream data available. (PLEASE NOTE: I WILL ADD THE CODE AS SOON AS I TIDIED IT UP A LITTLE.)

So, let’s first visualize all tweets between September, 17th and September 27th on a map. (As always: Please click on the image to enlarge it).

Some of you may know a certain webcomic by Randall Munroe. In this post about geographic profile maps, he made an important point. And it also applies to this scenario. Let’s look at another map with the sizes of all German cities with a population of over 100,000 people visualized as circles (the greater the radius of the circle, the greater the population of the city – proportions of circles are the same as the proportions of population sizes).

So, unsurprisingly, more people tweet more and the more tweets there are, the more tweets are about the elections. The following picture shows only tweets about the elections and city sizes.

**leave a comment**for the author, please follow the link and comment on their blog:

**Rcrastinate**.

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.