hull | R Documentation |
Constructs an enclosing hull from x- and y-coordinate data.
hull(x, y, percent = 100, smooth = FALSE)
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 |
A list containing the x- and y-coordinates of the hull.
dataEllipse
,
chull
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.