tri.dellens | R Documentation |
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
.
tri.dellens(voronoi.obj, exceptions = NULL, inverse = FALSE)
voronoi.obj |
object of class |
exceptions |
a numerical vector |
inverse |
Logical |
A vector of Delaunay segment lengths.
S. J. Eglen
voronoi.findrejectsites
, voronoi.mosaic
,
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.