add_hull {canprot} | R Documentation |
Adds a convex hull around the data.
add_hull(x, y = NULL, ...)
x |
x values |
y |
y values |
... |
arguments for |
add_hull
draws a convex hull around the points given in x
, y
.
This function is a wrapper for chull
and polygon
.
Invisibly returns the result from chull
.
dat <- iris[, 1:2]
plot(dat)
add_hull(dat)