Computes the shortest distances from each tile in a tessellation to the boundary of the window.
A tessellation (object of class
This function computes, for each tile s[[i]]
in the tessellation
X, the shortest distance
to the boundary of the window W containing the tessellation.
A numeric vector,
giving the shortest distance from each tile in the tessellation
to the boundary of the window.
Entries of the vector correspond to the entries of
P <- runifrect(15) X <- dirichlet(P) plot(X, col="red") B <- bdist.tiles(X) # identify tiles that do not touch the boundary plot(X[B > 0], add=TRUE, col="green", lwd=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.