tri.dellens: Compute the Delaunay segment lengths

Description Usage Arguments Value Author(s) See Also Examples

View source: R/tri.dellens.R

Description

Return a vector of Delaunay segment lengths for the voronoi object. The Delaunay triangles connected to sites contained in exceptions vector are ignored (unless inverse is TRUE, when only those Delaunay triangles are accepted).

The exceptions vector is provided so that sites at the border of a region can be removed, as these tend to bias the distribution of Delaunay segment lengths. exceptions can be created by voronoi.findrejectsites.

Usage

1
tri.dellens(voronoi.obj, exceptions = NULL, inverse = FALSE)

Arguments

voronoi.obj

object of class "voronoi"

exceptions

a numerical vector

inverse

Logical

Value

A vector of Delaunay segment lengths.

Author(s)

S. J. Eglen

See Also

voronoi.findrejectsites, voronoi.mosaic,

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(tritest)
tritest.vm <- voronoi.mosaic(tritest$x,tritest$y)

tritest.vm.rejects <- voronoi.findrejectsites(tritest.vm, 0,1, 0, 1)
trilens.all <- tri.dellens(tritest.vm)
trilens.acc <- tri.dellens(tritest.vm, tritest.vm.rejects)
trilens.rej <- tri.dellens(tritest.vm, tritest.vm.rejects, inverse=TRUE)

par(mfrow=c(3,1))
dotchart(trilens.all, main="all Delaunay segment lengths")
dotchart(trilens.acc, main="excluding border sites")
dotchart(trilens.rej, main="only border sites")

tripack documentation built on May 19, 2017, 8:37 p.m.

Search within the tripack package
Search all R packages, documentation and source code