Skip to content

Instantly share code, notes, and snippets.

@ashenfad
Last active March 31, 2017 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashenfad/48b4621bd3a9f1bb884a to your computer and use it in GitHub Desktop.
Save ashenfad/48b4621bd3a9f1bb884a to your computer and use it in GitHub Desktop.
Congressional District Gerrymandering Grades

Grades for each state (and district) based on how badly the district shapes seem gerrymandered.

Click on a state to see the individual district grades. Click on any district to return to the state view. Click and drag to pan, and scroll to zoom.

To compute a district's gerrymandering score I use the ratio of a district's area over the area of its convex hull. A district is only penalized for other state districts intruding into its convex hull. Coastlines and state boundaries don't affect the score.

The code used to generate the scores is available on github.

Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment