Skip to content

Instantly share code, notes, and snippets.

@ramnathv
Created March 5, 2011 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramnathv/856673 to your computer and use it in GitHub Desktop.
Save ramnathv/856673 to your computer and use it in GitHub Desktop.
# Panel of Choropleth Maps using Facets
# Plot Rahm Emnauel and Gery Chico
choro2 = plotChoropleth(.poly = chicago, .df = df,
id1 = list('WARD', 'PRECINCT'),
id2 = list('ward', 'precinct'),
field = c('emanuel', 'chico'),
title = 'Chicago Mayoral Election 2011',
legtitle = 'Votes %',
colpal = 'Blues', n = 5, style = 'pretty') +
opts(legend.position = c(0.15, 0.25));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment