Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tile.centroids

Compute centroids of Dirchlet (Voronoi) tiles


Description

Given a list of Dirichlet tiles, as produced by tile.list(), produces a data frame consisting of the centroids of those tiles.

Usage

tile.centroids(tl)

Arguments

tl

A list of the tiles (produced by tile.list()) in a Dirichlet tessellation of a set of planar points.

Value

A data frame with two columns named x and y. Each row of this data frame consitutes the centroid of one of the Dirichlet tiles.

Author(s)

References

URL http://en.wikipedia.org/wiki/Centroid

See Also

Examples

set.seed(42)
x <- runif(20)
y <- runif(20)
d <- deldir(x,y)
l <- tile.list(d)
g <- tile.centroids(l)
## Not run: 
plot(l,close=TRUE)
points(g,pch=20,col="red")

## End(Not run)

deldir

Delaunay Triangulation and Dirichlet (Voronoi) Tessellation

v0.2-10
GPL (>= 2)
Authors
Rolf Turner
Initial release
2021-02-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.