| tile.centroids | R Documentation |
Finds the centroid of each tile in a tessellation and returns them as a point pattern.
tile.centroids(x)
x |
A tessellation (object of class |
A tessellation is a collection of disjoint spatial regions
(called tiles) that fit together to form a larger spatial
region. See tess.
This command determines the centroid of each of the tiles
that make up the tessellation x using centroid.owin.
The result is a point pattern
containing the centroids,
listed in the same order as the tiles would be listed by tiles(x).
A point pattern (object of class "ppp").
.
tess,
tile.areas
A <- tess(xgrid=0:2,ygrid=0:2)
plot(A, main="")
plot(tile.centroids(A), add=TRUE)
D <- dirichlet(runifrect(6))
plot(D)
plot(tile.centroids(D), add=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.