voronoi.area | R Documentation |
Computes the area of each Voronoi polygon. For some sites at the edge of the region, the Voronoi polygon is not bounded, and so the area of those sites cannot be calculated, and hence will be NA.
voronoi.area(voronoi.obj)
voronoi.obj |
object of class |
A vector of polygon areas.
S. J. Eglen
voronoi
,
data(tritest)
tritest.vm <- voronoi.mosaic(tritest$x,tritest$y)
tritest.vm.areas <- voronoi.area(tritest.vm)
plot(tritest.vm)
text(tritest$x, tritest$y, tritest.vm.areas)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.