nemo_circle: Computes the largest empty circle which doesn't contain any...

Usage Arguments Value Examples

View source: R/nemo_circle.R

Usage

1
nemo_circle(points, hull, strict_inclusion, nmax_circles)

Arguments

points

a set of points (an 'sf' object).

hull

external limits of the set of points (a polygon type 'sf' object). Can be imported or computed with 'nemo_hull' function, with the coordinate reference system as points object.

strict_inclusion

TRUE if empty circle has to be entirely within the hull, FALSE otherwise.

nmax_circles

number of empty circles in output.

Value

an 'sf' object.

Examples

1
2
3
4
5
6
data(points)
nemo_pts <-
nemo_circle(points = points %>% st_transform(2154),
           hull = hull_pts,
           strict_inclusion = T,
           nmax_circles = 1)

mtmx/nemo documentation built on Nov. 4, 2019, 8:31 p.m.