Description Usage Arguments Details Value Examples
Calculate Voronoi polygons (or tessellations) from a 
SpatialPoints* object
1  | voronoi.polygons(x, bounding.polygon)
 | 
x | 
 A   | 
bounding.polygon | 
 If present, this is a   | 
This is a convenience routine for the 
deldir function.  The hard work, computing the Voronoi polygons,
is done by the deldir::deldir and deldir::tile.list functions. 
See documentation for those functions for details of computations.
This function is convenient because it takes a SpatialPoints* 
object and returns a Spatial Polygons DataFrame object.
A SpatialPolygonsDataFrame containing the Voronoi polygons
(or tessellations) surrounding the points in x. Attributes of the 
output polygons are: 
x : the horizontal coordinate of the tessellation's defining point
y : the vertical coordinate of the tessellation's defining point
 area : area of tessellation, in units of x's projection.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  | # Triangular grid inside a set of polygons
WA.samp <- sss.polygon(WA,100,triangular=TRUE) 
# Voronoi polygons of triangular grid 
WA.tess <- voronoi.polygons(WA.samp)
# Plot 
plot(WA)
plot(WA.tess, add=TRUE, col=rainbow(length(WA.samp)))
plot(WA.samp, add=TRUE, pch=16)
# One way to measure spatial balance: 
# Compare variance of Voronoi polygons to same sized 
# SRS sample.  
WA.bas <- bas.polygon(WA, 100)
WA.srs <- srs.polygon(WA, 100)
WA.bas.tess <- voronoi.polygons(WA.bas)
WA.srs.tess <- voronoi.polygons(WA.srs)
rel.balance <- var(WA.bas.tess$area)/var(WA.srs.tess$area)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.