Skip to content
Prev 343186 / 398513 Next

Generating a polygon around points

On 16/08/14 02:51, Bob O'Hara wrote:
You need to be able to tell owin() the vertices of the polygon that you 
want to use as your window.  It is possible that alphahull, as someone 
suggested, might give what you want; I don't know, I am not familiar 
with this function.  OTOH R is still lacking a mind_read() function so 
it probably would NOT give you *exactly* what you want.

If you want to get "exactly the right polygon" you probably will have to 
select out the vertices of the polygon (in the appropriate order) in 
some "by hand" manner.  It's possible that clickpoly() might be of help 
to you.

cheers,

Rolf Turner