voronoi.mosaic | R Documentation |
This function creates a Voronoi mosaic out of a given set of
arbitraryly located points in the plane. Each cell of a voronoi
mosaic is associated with a data point and contains all points
(x,y)
closest to this data point.
voronoi.mosaic(x, y = NULL, duplicate = "error")
x |
vector containing
|
y |
vector containing |
duplicate |
flag indicating how to handle duplicate elements. Possible values are:
|
The function creates first a Delaunay triangulation (if not already given), extracts the circumcircle centers of these triangles, and then connects these points according to the neighbourhood relations between the triangles.
An object of class voronoi
.
This function is meant as a replacement for function
voronoi.mosaic
from package tripack
.
Please note that the underlying triangulation uses a
different algorithm, see tri.mesh
. Contrary to
tri.mesh
this should not affect the result for non
unique triangulations e.g. on regular grids as the voronoi mosaic in
this case will still be unique.
The arguments are backward compatible, even the returned object should be
compatible with functions from package tripack
.
Albrecht Gebhardt <albrecht.gebhardt@aau.at>, Roger Bivand <roger.bivand@nhh.no>
G. Voronoi, Nouvelles applications des parametres continus a la theorie des formes quadratiques. Deuxieme memoire. Recherches sur les parallelloedres primitifs, Journal fuer die reine und angewandte Mathematik, 1908, vol 134, p. 198-287
voronoi
,voronoi.mosaic
,
print.voronoi
, plot.voronoi
data(franke)
fd <- franke$ds3
vr <- voronoi.mosaic(fd$x, fd$y)
summary(vr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.