Learn R Programming

tripack (version 1.3-9.2)

voronoi.area: Calculate area of Voronoi polygons

Description

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.

Usage

voronoi.area(voronoi.obj)

Value

A vector of polygon areas.

Author

S. J. Eglen

Arguments

voronoi.obj

object of class "voronoi"

See Also

voronoi,

Examples

Run this code
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)

Run the code above in your browser using DataLab