sjevor {sjevor}R Documentation

Voronoi analysis

Description

Compute the Voronoi tesselation, using Steve Fortune's code.

Usage

vorcr(x,y, xl, xh, yl, yh, fuzz, opts)

Arguments

x,y x and y coordinates of the sites
xl, xh lowest and highest x coordinate value
yl, yh lowest and highest y coordinate value
fuzz amount of random noise to add to the position of each point
opts useful options when calculating voronoi information. TODO These will need documenting.
v The structure returned by the Voronoi code.
show.pts,show.rejects If true, then sites are drawn as circles. Furthermore, if show.rejects is true, the reject cells are filled.
show.areas If true, then show.pts is ignored and instead the area of each polygon is displayed.

Value

v

A data structure that contains several interesting things...

Examples

x <- runif(100); y <- runif(100)
plot(x, y, asp=1)
v <- vorcr(x, y, 0, 1, 0, 1)
class(v)
names(v)
plot(v)
del.plot(v)
vorcr.polygons(v)
ianglesplot(v$iangles, show=TRUE)
stopifnot((apply(v$delangs, 1, sum) - 180) < 0.001)

[Package sjevor version 0.3 Index]