deldir (version 0.2-3)

tileInfo: Extract information from a tile list.

Description

Produces a summary of information about the tiles in an object of class deldir as produced by the function deldir().

Usage

tileInfo(object, bndry = FALSE)

Arguments

object

An object of class deldir as produced by the function deldir().

bndry

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.

Value

A list with components:

indivTiles

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.

allEdgeCounts

An integer vector of the edge counts (given by numEdge for each tile) of the tiles.

tabEdgeCounts

A table of numEdge.

allEdgeLengths

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.

Areas

A vector of the areas of the tiles.

uniqueEdgeLengths

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.

See Also

deldir() tile.list() print.tileInfo()

Examples

Run this code
# 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 DataCamp Workspace