Sunday, April 14, 2013

RG#59: US state map with county data filled

require(maps)
map('state', region = c('michigan', 'ohio', 'indiana', 'illinois'), 


fill = TRUE, 
col = c("red", "green4", "pink", "pink", "yellow"))
# rem: michigan has two polygons
 
 
# fill at county level for michigan  
map('county', region = c('michigan'),
fill = TRUE, col = rainbow (9))
 
 


 

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.