cascade_disks: cascade_disks

Description Usage Arguments Value Author(s) Examples

Description

Creates SpatialPolygonDataFrame for a suite of imbriqued disks

Usage

1
cascade_disks(center, spacings, quadsegs)

Arguments

center

SpatialPoints or SpatialPointsDataFrame object as defined in package sp

spacings

vector giving the width of each ring

quadsegs

Number of line segments to use to approximate a quarter circle.

Value

a SpatialPointsDataFrame with a unqiue attribute id

Author(s)

Pierre Roudier

Examples

1
2
3
4
5
library(sp)
pt <- SpatialPoints(data.frame(x = 1000000 * runif(1), y = 1000000 * runif(1)))
res <- cascade_disks(center = pt, spacings = 10)
plot(res, col = "lightgrey") 
plot(pt, add = TRUE, col = 2)

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