Compute centroids of Dirchlet (Voronoi) tiles
Given a list of Dirichlet tiles, as produced by tile.list()
,
produces a data frame consisting of the centroids of those tiles.
tile.centroids(tl)
tl |
A list of the tiles (produced by |
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.
Rolf Turner r.turner@auckland.ac.nz
URL http://en.wikipedia.org/wiki/Centroid
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.