get_single_voronoi: Rasterized version of the 'Weighted Voronoi Diagram'

Description Usage Arguments Value

View source: R/get_single_voronoi.R

Description

Polygons are rasterized and a Weighted Voronoi Diagram is calculated.

Usage

1
2
3
4
5
6
7
8
9
get_single_voronoi(
  core,
  point,
  buffer = NULL,
  weight_column = NULL,
  class_columns = NULL,
  res = 1,
  warn = TRUE
)

Arguments

core

Polygon containing a core plot boundary. core has to be a length one sfc_POLYGON-object.

point

An sf-object with a sfc_POINTgeometry column and another weighting column.

buffer

If available, a polygon containing a buffer plot boundary. buffer has to be a length one sfc_POLYGON-object. Relevant to decide which assignments of grid cells to points are critical.

weight_column

Character vector of length one. This column of the point dataset will be used as weight. If left out, an unweighted Voronoi Diagram will be calculated.

class_columns

Character vector specifying additional columns in /codepoint that will be added as separate classes to the output /codeRaster-object.

res

A numeric vector of length one specifying the resolution of the output grid

warn

Issue a warning if the coordinate system is not metric (which is not tested).

Value

A RasterStack-object.


JonasGlatthorn/APAtree documentation built on Dec. 18, 2021, 1:41 a.m.