convexhull.xy {spatstat} | R Documentation |
Computes the convex hull of a set of points in two dimensions.
convexhull.xy(x, y=NULL)
x |
vector of |
y |
(optional) vector of |
Given an observed pattern of points with coordinates
given by x
and y
, this function computes
the convex hull of the points, and returns it as a window.
A window (an object of class "owin"
).
Adrian Baddeley Adrian.Baddeley@csiro.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz
owin
,
as.owin
,
convexhull
,
bounding.box.xy
,
ripras
x <- runif(30) y <- runif(30) w <- convexhull.xy(x,y) plot(owin(), main="convexhull.xy(x,y)", lty=2) plot(w, add=TRUE) points(x,y) X <- rpoispp(30) plot(X, main="convexhull.xy(X)") plot(convexhull.xy(X), add=TRUE)