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

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
ject: RE: [R] points with-in boundaries of a map > > 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", &quo

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

2014-03-24 Thread Frede Aakmann Tøgersen
e received this e-mail in error please contact the sender. > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Ted Harding > Sent: 24. marts 2014 09:06 > To: r-help@r-project.org > Subject: Re: [R] points with-i

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

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

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

2014-03-23 Thread eliza botto
-project.org > Subject: Re: [R] points with-in boundaries of a map > > 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

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 coordin

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

2014-03-23 Thread eliza botto
m > CC: r-help@r-project.org > Subject: Re: [R] points with-in boundaries of a map > > 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

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. Wha