Convex Hull of Points
Computes the convex hull of a set of points in two dimensions.
- vector of
xcoordinates of observed points, or a 2-column matrix giving
x,ycoordinates, or a list with components
x,ygiving coordinates (such as a point pattern object of class
- (optional) vector of
ycoordinates of observed points, if
xis a vector.
Given an observed pattern of points with coordinates
y, this function computes
the convex hull of the points, and returns it as a window.
- A window (an object of class
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)
Looks like there are no examples yet.