Animated map of Philadelphia crime (credit: Simon Kassel, made with this R script)
Create an animated choropleth map of Philadelphia (Census tract level), using a Census variable of your choice.
This assignment is required. Please turn it in by email to myself (galkamaxd at gmail) and Evan (ecernea at sas dot upenn dot edu).
Due: 30-Jan before the start of class
Using the methods we've learned in class, create an animated choropleth map of Philadelphia using a Census variable of your choice.
- The map should be a Census tract-level map that uses Census tract-level data.
- You may choose any variable you wish, though the data must go back at least four years (i.e. the animation must include at least four frames).
- To avoid issues with changing Census boundaries, your data should start no earlier than 2010.
- The richest source of data can be found in the Census ACS Survey, though data from other sources is fair game.
- Example topics: property values, median income, most common occupation, etc.
The methods for creating the map should follow roughly this path:
- Make any necessary preparations to your tabular Census data (probably easiest in Excel): clean up columns, modify/add columns, remove unnecessary columns, make sure it includes a "join" column, etc.
- Join the tabular data to your Philadelpia map.
- Use ggplot2 to style the map, one year of data at a time.
- Export the plots as images and combine into a GIF.
This assignment is not intended as a purely technical exercise. You should also give careful consideration to design choices. The goal is for the map to tell as clear a "story" as possible.
- Are you using an appropriate color scheme? Number of colors? Well chosen break points?
- Does the animation run at a good pace?
- Does it include explanatory features (title, legend, etc) that make clear what you're looking at?
- All other aspects of the map's design
In your writeup, please include a few lines about the thought process behind your design choices.
If you have a preferred source of Census data, you are welcome collect the data from there.
The final deliverable should include all of these items:
- the map itself (animated GIF)
- all code and data used in the construction of the map
- a written explanation of: the steps you took to create it, reasons for your design choices, and anything else you would like to add about what the map shows / what patterns you see.
Your project will be graded will be graded on:
- Completion of the map as described
- Clarity of communication (does the map tell a clear story? can you defend your design choices?)
- Writeup (was it well thought out?)
Code will be checked for correctness, but will otherwise not be factored into the grade.
Extra credit:
Have an idea for a map that builds upon the project description (see the example at the top)? If so, please let me know by email what you have in mind for the chance to receive extra credit. Please be specific and include a link to the dataset[s] you intend to use.
