Re: [R] Points on Map

From: Steven McKinney <smckinney_at_bccrc.ca>
Date: Mon, 28 Mar 2011 19:11:44 -0700

Here's a start...

> require("maps")
> foo <- map("state", "new york")
> lines(x = range(foo$x, na.rm = TRUE), y = range(foo$y, na.rm = TRUE))

You can figure out from this how to specify the coordinates that you want for dividing up the map, put them in a file etc.

Steven McKinney



From: r-help-bounces_at_r-project.org [r-help-bounces_at_r-project.org] On Behalf Of Jaimin Dave [davejaiminm_at_gmail.com] Sent: March 28, 2011 11:12 AM
To: r-help_at_r-project.org
Subject: [R] Points on Map

Hi,
I am new to R and I want to plot points on the Map of New York . I also want to divide map of New York into small grids(not fixed) .I want that these point should be plotted from a file.How can I do it?Any help would be greatly appreciated.

Thanks
Jaimin

        [[alternative HTML version deleted]]



R-help_at_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_at_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. Received on Tue 29 Mar 2011 - 02:15:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 29 Mar 2011 - 02:50:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive