Skip to content
Visualisation of the 2017 NZ General Election
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data_geo
data_votes
images
lib
.gitignore
.nojekyll
3dhex.Rmd
3dhex.html
README.md
dumbbells.Rmd
dumbbells.html
election2017.Rproj
hexmaps.Rmd
hexmaps.html
index.Rmd
index.html

README.md

This is the code and data for https://david.frigge.nz/election2017/

Comments and questions welcome, by email, GitHub issue or tweet.

The site is created in R, with help from notable packages such as:

Various people deserve thanks and credits:

  • Peter Ellis deserves explicit thanks for the excellent nzelect package, making the historical data easily accessible.
  • The Electoral Commission for getting the new results out quickly and accessibly. (And Catalyst IT making it run smoothly in the background.)
  • Chris McDowall inspired my interest in hexmaps three years ago (and others').
  • Joseph Wright made shapefiles of his hexmaps available, which was fantastic. I wouldn't have been able to make that first step myself in the time available, so these were invaluable. And thanks to Stephen Beban for the pointer to these.
  • Bhaskar Karambelkar's tilegram examples were my guide for using leaflet. (And I have to figure out how to get NZ data into the tilegramsR package.)
You can’t perform that action at this time.