tile.centroids: Compute Centroids of Tiles in a Tessellation

View source: R/tess.R

tile.centroidsR Documentation

Compute Centroids of Tiles in a Tessellation

Description

Finds the centroid of each tile in a tessellation and returns them as a point pattern.

Usage

tile.centroids(x)

Arguments

x

A tessellation (object of class "tess").

Details

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).

Value

A point pattern (object of class "ppp").

Author(s)

\spatstatAuthors

.

See Also

tess, tile.areas

Examples

  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)

spatstat.geom documentation built on Jan. 20, 2026, 5:08 p.m.