buffer_wedge: A wedge Function

Description Usage Arguments Value Examples

View source: R/buffer_wedge.R

Description

Creates a wedge polygon

Usage

1
buffer_wedge(point, radius, degree, degree_width)

Arguments

point

Centre point of the buffer, must equal to true in: sf::st_is(point, "POINT")

radius

Radius of the buffer (numeric)

degree

The angle at which the wedge is centred (clockwise). Must be between 0 and 360 (numeric)

degree_width

Width of the wedge. Must be between 0 and 360 (numeric)

Value

An object of class sfc_POLYGON

Examples

1
2
3
4
5
example_point = sf::st_point(c(1,2))
example_point = sf::st_sfc(example_point)
example_point = sf::st_sf(example_point)
buffer_wedge(example_point, 200, 90, 45) -> wedge_shaped_buffer
plot(wedge_shaped_buffer)

buffeRs documentation built on Aug. 22, 2021, 9:07 a.m.