split_disc: split_disc

Description Usage Arguments Value Author(s) Examples

Description

Splits a disc into wedges

Usage

1
split_disc(center, width, splits)

Arguments

center

a object of class SpatialPoints or SpatialPointsDataFrame

width

radius of the disc to split into wedges

splits

number of splits/wedges

Value

An object of class SpatialPolygonsDataFrame

Author(s)

Pierre Roudier

Examples

1
2
3
4
5
6
library(sp)
pt <- SpatialPoints(data.frame(x = 1000000 * runif(1), y = 1000000 * runif(1)))
splits <- split_disc(center = pt, width = 100, splits = 50)

plot(splits, col = "lightgrey")
plot(pt, add = TRUE, pch = "+", col = 2)

pierreroudier/disctools documentation built on May 25, 2019, 6:08 a.m.