This Shiny application was designed to explore the distribution of signatures for a problematic petition put to the UK government . It looks at the number of signatures from each constituency, as well as the affiliation of the local MP. It can also be used to look at the top non-UK countries signing the petition, and to look at any relationship betweeen number of signatures and political affiliation.
The code can be adapted to do the same sort of visualisation for any other government petition. The data necessary is available in JSON format
UK government and parliament petitions releases data on who signs the petitions in JSON format. For this app, the data came from this petition: https://petition.parliament.uk/petitions/107516 General Election Results 2015 available here: http://data.london.gov.uk/dataset/general-election-results-2015
The app is available at [https://rekarrr.shinyapps.io/awfulPetition)