Get a Voronoi diagram or Delaunay triangles for points, or the nodes of lines or polygons
## S4 method for signature 'SpatVector'voronoi(x, bnd=NULL, tolerance=0, as.lines=FALSE, deldir=FALSE)## S4 method for signature 'SpatVector'delaunay(x, tolerance=0, as.lines=FALSE, constrained=FALSE)
Arguments
x: SpatVector
bnd: SpatVector to set the outer boundary of the voronoi diagram
tolerance: numeric >= 0, snapping tolerance (0 is no snapping)
as.lines: logical. If TRUE, lines are returned without the outer boundary
constrained: logical. If TRUE, a constrained delaunay triangulation is returned
deldir: logical. If TRUE, the deldir is used instead of the GEOS C++ library method. It has been reported that deldir does not choke on very large data sets