Uk

UK Elections 2017

A quick look at the UK 2017 election results with R

Robert McDonnell

1 minute read

This post is a quickie to show how we can visualize the UK election results with just a few lines of R code. (Really, very few). 1 We can load in our usual tidyverse tools, along with a handy little data package, parlitools. library(readr) library(dplyr) library(ggplot2) library(parlitools) library(sf) Thanks to this R Bloggers post, we have the data (the UK Electoral Commission must have it up by now anyway), so