demarcate_regions: Divide an area into Voronoi polygons

Description Usage Arguments Value

View source: R/fun_voronoi_area.R

Description

Divide an area into Voronoi polygons

Usage

1
2
3
4
5
demarcate_regions(
  area_of_interest,
  region_demarcation_points = list(main_islands = c(-160.1, 21.8), nwhi = c(-161.9,
    23))
)

Arguments

area_of_interest

An sf-object showing the area of interest. Must have a CRS. Voronoi points will be converted to this CRS.

region_demarcation_points

A list of 2-element vectors which will be used to construct Voronoi polygons from the Hawaii buffer. Set to Niihau (main_islands) and Nihoa (NWHI). Must be specified in decimal degrees (WGS84 CRS: EPSG code = 4326).

Value

An sf-object with the area of interest demarcated into regions.


pratikunterwegs/endemicr documentation built on April 2, 2021, 11:57 a.m.