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

November 12, 2009

Comments

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:
http://www.gadm.org/country

nor maplibrary:
http://www.maplibrary.org/stacks/gadm/USA/index.php

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

Here is mine.

http://gist.github.com/233257

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:
http://www.thisisthegreenroom.com/2009/choropleths-in-r/

This might help:

Figure 13.10
http://lmdvr.r-forge.r-project.org/figures/figures.html

And mine, using base graphics and census data.

http://gist.github.com/233956

http://files.eduardoleoni.com/map20091113.png


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