findHull: Find the convex hull of a 2D set of points

View source: R/findHull.R

findHullR Documentation

Find the convex hull of a 2D set of points

Description

Find the convex hull of a 2D set of points

Usage

findHull(dat, x, y, group = NULL)

Arguments

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

Value

dataframe of convex hulls as vertices

Examples

dat <- data.frame(x = rnorm(50), y = rnorm(50), 
  group = sample(seq_len(5), 50, replace = TRUE))

findHull(dat, "x", "y", "group")


johngodlee/JLGMisc documentation built on June 29, 2024, 9:15 p.m.