10.3. Shapefile assignment

In this assignment you will draw a map of the US visualizing some data using the example of shapefile usage given in the Geocoding and shapefile notebook.

10.3.1. What to do

Using the above lab notebook as your model, create a map representing the breakdown in support between two Republican candidates in the last presidential election, state by state. I suggest using Michelle Bachmann and Rick Perry, but you may use ANY two candidates except Barack Obama and Mitt Romney. The map should use degree of intensity on the gray scale to represent what proportion of the total money given to candidates A and B went to candidate A. For example, if you choose Michelle Bachmann and Rick Perry, then the degeree of darkness of a state shading might represent what percentage of the support given to either Perry or Bachmann went to Perry in that state.

10.3.2. What to turn in

You should turn in an Ipython notebook showing the code you used. You should turn in an image file of the map you created. And you should answer the following questions:

  1. Measuring strength of support by percentage of campaign contributions, what 3 states gave the highest proportion of their support to Rick Perry?
  1. Measuring strength of support by percentage of campaign contributions, what 3 states gave the highest proportion of their support to Michelle Bachmann?