« Revolution Analytics ∈ Microsoft == TRUE | Main | Association Rules and Market Basket Analysis with R »

April 07, 2015


Feed You can follow this conversation by subscribing to the comment feed for this post.

Thanks for the post, David. I'd like to reproduce these choropleths with other areas in California (SAC and Los Angeles, for the most part). I fiddled with the US Census Bureau website but couldn't get the demographic breakdown in a csv file just like the one you used for SF (sf_demographics.csv). Is there anything I'm missing here?

Hi Marco,

The script I used to create the data.frames is located here: https://github.com/arilamstein/acs-zcta-explorer/blob/master/gen_df.R

The subsetting for regions happens at line 56.


Also note that if you want to view the same analysis for another geography you can simply use the interactive application I wrote to do that: https://github.com/arilamstein/acs-zcta-explorer

Thanks for that, David. Keep up the excellent work.

This is an awesome package and thank you for the work! A quick question - when I use the state zoom, the map is curved (spherical). Is it possible to get a flat view? I assume this has to do with the ZTCA dataset.

@gopala - Sorry, I just saw this comment now. I think that you are referring to the projection of the map. You might be able to use + geom_map() (http://docs.ggplot2.org/current/geom_map.html) to the output of zip_choropleth to get a different projection. But R crashes for me when I do that. I am planning to take a deeper look into that, and see if I can make it the default option in future releases as well.

The comments to this entry are closed.

Search Revolutions Blog

Got comments or suggestions for the blog editor?
Email David Smith.
Follow revodavid on Twitter Follow David on Twitter: @revodavid
Get this blog via email with Blogtrottr