Re: [R] mapping states with colors

2009-07-03 Thread Greg Snow
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Donald Braman > Sent: Thursday, July 02, 2009 7:12 PM > To: r-help > Subject: [R] mapping states with colors > > Hi folks, > I'm just learning how to use

Re: [R] mapping states with colors

2009-07-03 Thread Paul Hiemstra
Hi, You could have a look at the sp-package, it provides R-classes for spatial data. In addition, it also provides very nice plotting facilities. To read your data into these sp classes you can use the rgdal package. There is also an R mailing list specifically for geographic data (r-sig-geo)

[R] mapping states with colors

2009-07-02 Thread Donald Braman
Hi folks, I'm just learning how to use maps. As an initial foray, I'm mapping the states that have "duty to retreat" (blue) and "stand your ground" (red) self-defense standards. Here is my extremely naive script: dtr <- c('alabama', 'arizona', 'conneticut', 'delaware', 'dist of columbia' , 'hawa