Well, you're the one who offered code without designating what
libraries were loaded or required. Here's my sessionInfo, ... what's
yours?
> sessionInfo()
R version 2.8.1 Patched (2009-01-07 r47515)
i386-apple-darwin9.6.0
locale:
en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] maps_2.0-40 zoo_1.5-5
loaded via a namespace (and not attached):
[1] grid_2.8.1 lattice_0.17-20 tools_2.8.1
--
David Winsemius
On Mar 4, 2009, at 5:41 PM, Alina Sheyman wrote:
When I run this code i get the following error messages
Error in mapgetg(database, gon, as.polygon, xlim, ylim) :
NA/NaN/Inf in foreign function call (arg 6)
In addition: Warning messages:
1: In min(x, na.rm = na.rm) :
no non-missing arguments to min; returning Inf
2: In max(x, na.rm = na.rm) :
no non-missing arguments to max; returning -Inf
On Wed, Mar 4, 2009 at 5:27 PM, David Winsemius <dwinsem...@comcast.net
> wrote:
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
coordinates:
?map
text(long, lat, "text")
#
data(ozone)
map("state", xlim = range(ozone$x), ylim = range(ozone$y))
text(ozone$x, ozone$y, ozone$median)
box()
--
David Winsemius
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@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.