findHull | R Documentation |
Find the convex hull of a 2D set of points
findHull(dat, x, y, group = NULL)
dat |
dataframe of points |
x |
column name string of x axis values |
y |
column name string of y axis values |
group |
optional column name string of grouping variable |
dataframe of convex hulls as vertices
dat <- data.frame(x = rnorm(50), y = rnorm(50),
group = sample(seq_len(5), 50, replace = TRUE))
findHull(dat, "x", "y", "group")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.