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