Re: [R] points with-in boundaries of a map

2014-03-24 Thread Frede Aakmann Tøgersen
Hi Eliza I think this comes close to what you want (escaping manual work). library(maps) library(sp) ## has a point.in.polygon function ireland - map(world, ireland) map.axes() xr - range(ireland$x, na.rm = TRUE) yr - range(ireland$y, na.rm = TRUE) xseq - seq(xr[1], xr[2], by = 0.1) yseq -

Re: [R] points with-in boundaries of a map

2014-03-24 Thread Frede Aakmann Tøgersen
Hi guys Just to follow up on Ted's comments. See http://erich.realtimerendering.com/ptinpoly/ for other points in polygon algorithms. Eric Haines has made some performance evaluation of the methods. I quote here Eric: The worst algorithm in the world for testing points is the angle summation

Re: [R] points with-in boundaries of a map

2014-03-24 Thread eliza botto
Dear Frede and Ted, What an absolutely crackerjack for somebody who was begging for such a solution. It worked and worked awfully well. I am grateful! Eliza From: fr...@vestas.com To: eliza_bo...@hotmail.com; r-help@r-project.org Date: Mon, 24 Mar 2014 08:09:26 +0100 Subject: RE: [R] points

Re: [R] points with-in boundaries of a map

2014-03-24 Thread Ray Brownrigg
On 24/03/14 20:09, Frede Aakmann Tøgersen wrote: : ## get ireland map as polygon, only for main island ## map.poly not exported so use maps:::map.poly ## use exact to leave out Achill Island and only get main island ie.polygon - maps:::map.poly(world, Ireland, exact = TRUE, as.polygon =

Re: [R] points with-in boundaries of a map

2014-03-24 Thread eliza botto
Thanks ray, I really appreciate your concern. Eliza Date: Tue, 25 Mar 2014 08:35:15 +1300 From: ray.brownr...@ecs.vuw.ac.nz To: fr...@vestas.com; eliza_bo...@hotmail.com; r-help@r-project.org Subject: Re: [R] points with-in boundaries of a map On 24/03/14 20:09, Frede Aakmann Tøgersen

Re: [R] points with-in boundaries of a map

2014-03-23 Thread eliza botto
Thankyou very much jim. it worked! but regarding second part of my question, isn't there a way to read the coordinates of intersecting lines with the premises of the map?thanks, Eliza Date: Sun, 23 Mar 2014 14:19:43 +1100 From: j...@bitwrit.com.au To: eliza_bo...@hotmail.com CC:

Re: [R] points with-in boundaries of a map

2014-03-23 Thread Jim Lemon
On 03/23/2014 10:29 PM, eliza botto wrote: Thankyou very much jim. it worked! but regarding second part of my question, isn't there a way to read the coordinates of intersecting lines with the premises of the map? Hi Eliza, I think you want the locator function, which will return the

Re: [R] points with-in boundaries of a map

2014-03-23 Thread eliza botto
Thankyou very much. I actually knew abt this command, I just wanted to have a more direct command instead of manual.But anyway, thankyou very much indeed.:DEliza Date: Mon, 24 Mar 2014 09:50:50 +1100 From: j...@bitwrit.com.au To: eliza_bo...@hotmail.com CC: r-help@r-project.org Subject:

Re: [R] points with-in boundaries of a map

2014-03-23 Thread Ted Harding
On 23-Mar-2014 22:50:50 Jim Lemon wrote: On 03/23/2014 10:29 PM, eliza botto wrote: Thankyou very much jim. it worked! but regarding second part of my question, isn't there a way to read the coordinates of intersecting lines with the premises of the map? Hi Eliza, I think you want the

[R] points with-in boundaries of a map

2014-03-22 Thread eliza botto
Dear UseRs, I have a question regarding reading the coordinates within a country' map. I drew map of ireland by using the following commands library(maps) library(mapproj) map(world, ireland) map.axes() You can clearly see the axis labelled. What is want to do is to draw lines (both vertically

Re: [R] points with-in boundaries of a map

2014-03-22 Thread Jim Lemon
On 03/23/2014 01:01 PM, eliza botto wrote: Dear UseRs, I have a question regarding reading the coordinates within a country' map. I drew map of ireland by using the following commands library(maps) library(mapproj) map(world, ireland) map.axes() You can clearly see the axis labelled. What is