deldir (version 0.1-15)

print.tileInfo: Print a summary of tile information.

Description

Print a reasonably readable summary of an object of class tileInfo as produced by the tileInfo() function.

Usage

# S3 method for tileInfo
print(x, digits = 4, ...)

Arguments

x

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

digits

The (maximum) number of decimal digits to which the output is to be printed.

Not used. Present for compatibility with the generic print() function.

Value

None.

Details

The list produced by tileInfo() is a bit messy and hard to comprehend, especially if there is a large number of tiles. This print method produces a screen display which is somewhat more perspicuous.

There are three components to the display:

  • A matrix, each row of which is the vector of edge lengths of the tile. The number of columns is the maximum of the lengths of the edge length vectors. Rows corresponding to shorter vectors are filled in with blanks. The row names of the matrix indicate the number of the point corresponding to the tile. Note that this number is the index of the point in the original sequence of points that is being tessellated.

  • A table of the edge counts of the tiles.

  • A simple print out of the areas of the tiles (rounded to a maximum of digits decimal digits).

This screen display is for “looking at” only. In order to do further calculations on the output of tileInfo it is necessary to delve into the bowels of x and extract the relevant bits.

In order to get a decent looking display you may (if there are tiles with a large number of edges) need to widen the window in which you are displaying the output and increase the value of the width option. E.g. use options(width=120).

See Also

tileInfo()

Examples

Run this code
# NOT RUN {
set.seed(179)
x    <- runif(100)
y    <- runif(100)
dxy  <- deldir(x,y,rw=c(0,1,0,1))
ixy1 <- tileInfo(dxy)
print(ixy1)
ixy2 <- tileInfo(dxy,bndry=TRUE)
print(ixy2)
# }

Run the code above in your browser using DataCamp Workspace