find_hull: Find convex hull from a set of points

Description Usage Arguments Value Author(s) Examples

View source: R/geometryfns.R

Description

Returns the convex hull from a set of points with fields x and y

Usage

1

Arguments

points

a data frame with fields x and y

Value

subset of points corresponding to the convex hull

Author(s)

Andrew Zammit Mangion

Examples

1
2
3
4
5
N = 99
points <- data.frame(x = runif(n=N), y = runif(n=N),id=1:N)
hull <- find_hull(points)
plot(points$x,points$y)
lines(hull$x,hull$y,col="red")

shazhe/mvst0 documentation built on May 29, 2019, 9:20 p.m.