Spring Budget 2017: Circle visualisation

Spring Budget 2017: Circle visualisation

It’s time to branch out into a new area of data visualisation: proportion area plots. These plots use area to show proportion between different related values. A common type of proportional area plots are tree maps. We are going to […]

Continue Reading

Comparing Donald Trump and Hillary Clinton’s Facebook pages during the US presidential election, 2016

Comparing Donald Trump and Hillary Clinton’s Facebook pages during the US presidential election, 2016

R has a lot of packages for users to analyse posts on social media. As an experiment in this field, I decided to start with the biggest one: Facebook. I decided to look at the Facebook activity of Donald Trump […]

Continue Reading

Calculating Distances in R: How Fast is Your Train?

Calculating Distances in R: How Fast is Your Train?

Earlier this month Marie Segger, Carlos Novoa and I had a major new project published about different rail speeds between cities around Britain. We compared the distances between train stations in Britain’s largest cities and found which areas were poorly-served […]

Continue Reading

Internal Migration Part III: Plotting Age Groups

Internal Migration Part III: Plotting Age Groups

Introduction In Part I we looked at overall internal migration local authority by local authority – are more people coming than going? In Part II we looked at where people are moving from and to around the country. Here in […]

Continue Reading

Internal Migration, Part II: Homing in on individual authorities

Internal Migration, Part II: Homing in on individual authorities

In the first post we completed a hexagonal map showing internal migration at a glance around England and Wales in 2015/16. This map is very good for an overview of what’s going on around the country – is your area […]

Continue Reading

Internal Migration, Part I: Hexagonal maps of movement of people

Internal Migration, Part I: Hexagonal maps of movement of people

The Office for National Statistics published some of its most interesting data last week – internal migration. This is the movement of people within the UK of people who are already here, not counting people immigrating or emigrating from abroad. […]

Continue Reading

Practice with For Loops: Calculating Mean Ages

Practice with For Loops: Calculating Mean Ages

  At work I’ve been working on a project called Find My Seat, which is now live. You type in your postcode and it presents you with lots of useful data about the economy, healthcare, immigration and Brexit in your […]

Continue Reading

Using R to make Freedom of Information requests

Using R to make Freedom of Information requests

Like other departments the Ministry of Justice publishes spending data worth more than £25,000. It does this both for itself and for its executive agencies like the National Offender Management Service (NOMS) which runs the prison system. It does this […]

Continue Reading

Cyclists Involved in Accidents Undertaking

Cyclists Involved in Accidents Undertaking

Last week I wrote some stories about cyclists involved in accidents while undertaking. The stories generated a LOT of comment and debate – both far more and far more negative than I was expecting. I’ll address that in a moment, but first, here’s […]

Continue Reading

Overcrowding in prison

Overcrowding in prison

It’s been a rocky few months for the prison system in England and Wales. In December there was a riot at HMP Birmingham that lasted around 12 hours. Authorities had to send in Tornado teams to restore order. The bill for […]

Continue Reading