zmeers / ggparliament

Simple parliament plots using ggplot2
https://zmeers.github.io/ggparliament/
Other
150 stars 13 forks source link

Cleaning data #6

Closed RobWHickman closed 6 years ago

RobWHickman commented 6 years ago

The .rda data in /data is a bit unclean- especially ward_results.

Here's a list of things to do (non-exhaustive)

zmeers commented 6 years ago

I'm thinking we might want to add Australian data for u-shaped parliaments. Results for all Australian federal elections can be found in pscl... A few other elections are in pscl as well - I know for sure there are results for some UK and US elections.

RobWHickman commented 6 years ago

yeah UK data (for the bench layout) and the Australian data would be good. I'll probs throw some basic datasets together from wikipedia or http://www.globalelectionsdatabase.com/index.php/index- whichever is quicker :)

RobWHickman commented 6 years ago

ok I've repackaged the data into a single file (election_data) which contains at least 3 examples for various 'shapes' of parliamentary houses

it's all on the election_data branch

once I re-add the american history and either West Germany or something else for the circles I'll pull it across (and close the issue) so we have a common dataset that should account for most things we'd want to do. I reckon for submission we'd want to trim back later for CRAN (to 3x elections for each house type)

zmeers commented 6 years ago

North-Rhine Westphalia is a current example of a circular parliament... Unfortunately, it's not a federal example. There is a book on parliament layouts. I can see if it's in my university library tomorrow. The other data sets sound interesting!

zmeers commented 6 years ago

Can we close this?