A gallery of recent maps

This map presents a selection of maps I have produced in the last few weeks. If you follow me on Twitter or on Reddit you will have seen most of these already. All the images below are clickable thumbnails which link to a full-size version.

Read More

New interactive map of SA election results

Five years ago, after the 2014 general election, I built an interactive map of the election results. Since then the state of the technology for web mapping has moved on, so I’ve developed a completely new version. This new map uses vector tiles for better rendering, includes results for four general elections (2004–2019), and allows you to drill all the way down to voting district level. And here it is.

A screenshot of a site titled 'South African Election Results' and showing the results of the 2019 election by ward.
Read More

South African provinces as they might have been

The post-apartheid political map of South Africa might well have looked quite different. The Eastern Cape might have been divided into two provinces, with the Kat River and Great Fish River on the boundary. The Northern Cape might not have existed, with the Western Cape meeting North West at the Orange River. Gauteng might have been much bigger – or much smaller. The Western Cape might have stopped south of Citrusdal – or it might have incorporated all of Namaqualand.

Read More

Mildly interesting facts about the 2014 election

As “the data guy” for the Democratic Alliance, naturally my job involves working with election result data. This post is a collection of mildly interesting facts I’ve learned about the 2014 elections in the course of my work. I’ll start off with a quite surprising fact: the location of the busiest voting station.

Read More

Follow-up - geometric median centres of population

My post yesterday discussed the mean centres of population of South Africa and its provinces. The mean centre is (relatively) easy to calculate, but it may not be the most useful type of population centre. It is essentially an arithmetic mean, which means that outliers can have a massive effect on the centre. It minimizes the average square of distance from the centre, not the average distance from the centre. The centre that does minimize the average distance is called the geometric median, and it is not quite so simple to calculate, since there is no closed form solution. But it can be done!

Read More

Getting rid of the decimal comma in Ubuntu

At some point in school, we South Africans are told that the official decimal separator is the comma.¹ Most of us then proceed to ignore this—at least in English use²—because it differs from the decimal point used in the rest of the English-speaking world, and thereby creates confusion. Thankfully, the maintainers of the glibc locale data—and thus the number formats used in Linux systems—agree with me on this question, and the South African English locale uses the decimal point.

Read More