Produces a summary of information about the tiles in an
object of class deldir
as produced by the function
deldir()
.
tileInfo(object, bndry = FALSE)
An object of class deldir
as produced
by the function deldir()
.
Logical scalar. If TRUE
then the “boundary” tiles
(those tiles having edges forming part of the “rectangular
window” enclosing the tessellation) are included in the summary.
Otherwise they are not included.
A list with components:
This is itself a list with one entry for each
tile in “object”. It is in fact a named list,
the names being of form tile.n
, where n
is equal to
the value of ptNum
(see below) corresponding to the tile.
The entries of indivTiles
are themselves in turn lists with
entries edgeLengths
(a vector of the lengths of the edges
of the tiles), numEdges
(an integer equal to the number
of edges of the tile), area
(a positive number equal to
the area of the tile) and ptNum
(an integer equal to the
number of the point determining the tile). Note that ptNum
is the number of the point in the original sequence of
points that were tessellated.
An integer vector of the edge counts (given
by numEdge
for each tile) of the tiles.
A table of numEdge
.
A vector of all of the tile edge lengths;
a catenation of the edgeLengths
components of the entries
of indivTiles
. Note that there will be many duplicate
lengths since each tile edge is, in general, an edge of two
tiles.
A vector of the areas of the tiles.
A vector of the lengths of the tiles edges
with the duplicates (which occur in allEdgeLengths
) being
eliminated. Each tile edge is represented only once.
deldir()
tile.list()
print.tileInfo()
# NOT RUN {
set.seed(42)
x <- runif(20)
y <- runif(20)
dxy <- deldir(x,y,rw=c(0,1,0,1))
ixy1 <- tileInfo(dxy)
ixy2 <- tileInfo(dxy,bndry=TRUE)
# }
Run the code above in your browser using DataLab