[R] mapping lat and long with maps package
dwinsemius at comcast.net
Wed Mar 4 23:27:28 CET 2009
The example on the help page would seem to be completely on point if I
understand your desire to be plotting text at particular long,lat
text(long, lat, "text")
map("state", xlim = range(ozone$x), ylim = range(ozone$y))
text(ozone$x, ozone$y, ozone$median)
On Mar 4, 2009, at 5:04 PM, Alina Sheyman wrote:
> I am trying to overlay a data frame with lat and longitude(which
> refer to
> zip codes) on the map of US that I get by using map ("states").
> Is there anyway to do this or do I have to resort to using maptools?
> thank you
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help