« Social Network Analysis on demand | Main | Because it's Friday: Visualize your own Adventure »

November 12, 2009


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

Why don't you post that as question on stackoverflow? I was thinking the same thing when I read that blog entry on FlowingData this morning...

Here's my attempt- http://gist.github.com/233134. It would be a lot more succinct with a better data source for the counties. Any suggestions?

Took me about twenty minutes - I found a shapefile with FIPS codes, read in with readOGR from package:rgdal, then read in the unemployment data with read.table, matched up the FIPS codes (two missing), then converted things to a factor to plot with the same colour scheme, used spplot for the graphic.

Python's BeautifulSoup of course is made for hacking XML files. I'd actually like to see him do it properly in Python using a shapefile and the various python map packages.

Neither gadm:

nor maplibrary:

seemed to have FIPS codes in their maps of US counties.

Here is mine.


It craps out a bit on a few counties since the maps(county) data has some strange names. Fun exercise though.

Love the challenge, David - here's my take:

This might help:

Figure 13.10

And mine, using base graphics and census data.



Good stuff...I used this as a springboard to create choropleth maps for all economic and demographic data in the u.s. census at StatJump

e.g. Check out the distribution of Italian population by county.

I'm trying to do the same thing but for only one state. I tried getting the shape file and using readOGR but get an error message. Any idea how I could go about it? cheers

Is the data for this available there still?

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