UK Local Elections 2017

[This article was first published on Fergus Taylor, 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.

Following a very interesting post I’d found on twitter by Paul Campbell, I was curious to try to recreate the plots involved myself.

Plotting a coloured point as a representation of 100 votes in each ward is interesting, it gives a surprising feel for the sense of party proportions in an area. It doesn’t give a sense of voter turnout vs population, but it does give a sense of scale to voting in areas.

I did wonder if the sense of geographic detail from each plot point, (the location within a ward is randomly generated), was misleading though. For example, 100 plots below.

You can see the variation between each frame, however I was surprised I didn’t notice more of a difference. Perhaps just due to the scale of the individual points to the electoral ward it retained the same sense of voting proportions, as well as (although to a lesser-extent) geographic spread across parties.

This was an interesting plot to try out. I’ve been enjoying ‘Guardian Visual’ and other election coverage recently, especially in the run-up to this year’s local elections, and it’s given me a lot to think about.

To leave a comment for the author, please follow the link and comment on their blog: Fergus Taylor. 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.

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)