Re: [R] Generating a polygon around points

2014-08-16 Thread Rolf Turner
On 17/08/14 01:57, Greg Snow wrote: On Fri, Aug 15, 2014 at 4:06 PM, Rolf Turner wrote: OTOH R is still lacking a mind_read() function so it probably would NOT give you *exactly* what you want. We can try the (very pre-alpha) esp package: source('g:/R/esp/esp.R') esp() [1] "piccalilli cra

Re: [R] Generating a polygon around points

2014-08-16 Thread Greg Snow
On Fri, Aug 15, 2014 at 4:06 PM, Rolf Turner wrote: > OTOH R is still lacking a mind_read() function so it probably > would NOT give you *exactly* what you want. We can try the (very pre-alpha) esp package: > source('g:/R/esp/esp.R') > esp() [1] "piccalilli crawlspace mole swarthy thunderhead f

Re: [R] Generating a polygon around points

2014-08-15 Thread Rolf Turner
On 16/08/14 11:01, David Winsemius wrote: On Aug 15, 2014, at 3:11 PM, Rolf Turner wrote: I tried RSiteSearch("convex hull") just now, as an experiment, and it seemed to work just fine. I think that the Universe is picking on Dave (instead of on me, for once!). :-) RSiteSearch("conve

Re: [R] Generating a polygon around points

2014-08-15 Thread David Winsemius
On Aug 15, 2014, at 3:11 PM, Rolf Turner wrote: > On 16/08/14 05:10, Jeff Newmiller wrote: >> I use RSiteSearch regularly with no problems. Perhaps I have just had >> a lucky streak? I wonder what the odds are... :-) > > > > >> On August 15, 2014 8:55:40 AM PDT, David Winsemius >> wrote: >>>

Re: [R] Generating a polygon around points

2014-08-15 Thread Rolf Turner
On 16/08/14 05:10, Jeff Newmiller wrote: I use RSiteSearch regularly with no problems. Perhaps I have just had a lucky streak? I wonder what the odds are... :-) On August 15, 2014 8:55:40 AM PDT, David Winsemius wrote: On Aug 15, 2014, at 8:15 AM, Jeff Newmiller wrote: Not really sure

Re: [R] Generating a polygon around points

2014-08-15 Thread Rolf Turner
On 16/08/14 02:51, Bob O'Hara wrote: I've been struggling for half a day on what should be a simple problem... I have a data frame of lat/long coordinates that describe a region, and I want to draw a polygon around them so I can use that as a boundary (to be thrown at INLA, but those details are

Re: [R] Generating a polygon around points

2014-08-15 Thread Tsjerk Wassenaar
Hi Bob, You probably want to have a look at the package alphahull. Cheers, Tsjerk On Fri, Aug 15, 2014 at 5:25 PM, Clint Bowman wrote: > Your question seems to need an answer to, "How do you find a convex hull > on a sphere?" Google has many references. > > Clint BowmanI

Re: [R] Generating a polygon around points

2014-08-15 Thread MacQueen, Don
I have been using a process like the following to create polygons that (closely) surround a non-convex set of points. buf1 <- gBuffer(tmpb.ne, width=bstart, byid=TRUE) buf2 <- gUnaryUnion(buf1) buf <- gBuffer(buf2, width=bshrink) These functions are from the rgeos package. In my case, tmpb

Re: [R] Generating a polygon around points

2014-08-15 Thread Jeff Newmiller
I use RSiteSearch regularly with no problems. Perhaps I have just had a lucky streak? I wonder what the odds are... :-) --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#.

Re: [R] Generating a polygon around points

2014-08-15 Thread Jeff Newmiller
No wonder I didn't understand your constraints... you didn't state them. In fact, I think you still haven't stated them. Perhaps you need a map outline? Or, you could just create a polygon manually? Isocline of a two-D kernel density estimate or kriging fit? Manually partition your data into reg

Re: [R] Generating a polygon around points

2014-08-15 Thread David Winsemius
On Aug 15, 2014, at 8:15 AM, Jeff Newmiller wrote: > Not really sure I understand your constraints, but perhaps > > RSiteSearch("convex hull ") RSiteSearch has really been broken for some time now. (You get the headers but the links are all broken. A more effective way of searching the existin

Re: [R] Generating a polygon around points

2014-08-15 Thread Clint Bowman
Your question seems to need an answer to, "How do you find a convex hull on a sphere?" Google has many references. Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu Department of Ecology VOICE:

Re: [R] Generating a polygon around points

2014-08-15 Thread Bob O'Hara
Unfortunately my region isn't convex, and I don't want to end up predicting the distribution of a forest-dwelling bird in the Atlantic ocean... Bob On 15 August 2014 17:15, Jeff Newmiller wrote: > Not really sure I understand your constraints, but perhaps > > RSiteSearch("convex hull ") > > mi

Re: [R] Generating a polygon around points

2014-08-15 Thread Jeff Newmiller
Not really sure I understand your constraints, but perhaps RSiteSearch("convex hull ") might help? --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go

[R] Generating a polygon around points

2014-08-15 Thread Bob O'Hara
I've been struggling for half a day on what should be a simple problem... I have a data frame of lat/long coordinates that describe a region, and I want to draw a polygon around them so I can use that as a boundary (to be thrown at INLA, but those details aren't important). The coordinates are alm