add_hull: Add convex hull

View source: R/add_hull.R

add_hullR 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 polygon

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)

jedick/canprot documentation built on April 2, 2024, 10:29 p.m.