hull: Construct a Hull

View source: R/hull.R

hullR Documentation

Construct a Hull

Description

Constructs an enclosing hull from x- and y-coordinate data.

Usage

hull(x, y, percent = 100, smooth = FALSE)

Arguments

x

the x-coordinate data. Missing values are permitted, but ignored.

y

the y-coordinate data. Missing values are permitted, but ignored.

percent

the minimum percent to enclose.

smooth

logical, if TRUE, then smooth the bounding hull.

Value

A list containing the x- and y-coordinates of the hull.

See Also

dataEllipse, chull

Examples

set.seed(1)
X <- rnorm(32)
Y <- X + rnorm(32)
# The enclosing polygon
hull(X, Y)
# The points
chull(X, Y)
## Not run: 
# For examples of hull in graphs see
vignette(topic="GraphAdditions", package="smwrGraphs")

## End(Not run)

USGS-R/smwrGraphs documentation built on Oct. 11, 2022, 6:11 a.m.