powered by
Adds a convex hull around the data.
add_hull(x, y = NULL, ...)
Invisibly returns the result from chull.
chull
x values
y values
arguments for polygon
polygon
add_hull draws a convex hull around the points given in x, y. This function is a wrapper for chull and polygon.
add_hull
x
y
dat <- iris[, 1:2] plot(dat) add_hull(dat)
Run the code above in your browser using DataLab