| convexhull.xy {spatstat.geom} | R Documentation | 
Convex Hull of Points
Description
Computes the convex hull of a set of points in two dimensions.
Usage
convexhull.xy(x, y=NULL)
Arguments
| x | vector of  | 
| y | (optional) vector of  | 
Details
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.
Value
A window (an object of class "owin").
Author(s)
Adrian Baddeley Adrian.Baddeley@curtin.edu.au
and Rolf Turner rolfturner@posteo.net
See Also
owin,
as.owin,
convexhull,
bounding.box.xy,
ripras
Examples
  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 <- runifrect(30)
  plot(X, main="convexhull.xy(X)")
  plot(convexhull.xy(X), add=TRUE)
[Package spatstat.geom version 3.3-2 Index]