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.
NA
voronoi.area(voronoi.obj)
object of class "voronoi"
"voronoi"
A vector of polygon areas.
voronoi.mosaic,voronoi.polygons,
voronoi.mosaic
voronoi.polygons
# NOT RUN { data(franke) fd3 <- franke$ds3 fd3.vm <- voronoi.mosaic(fd3$x,fd3$y) fd3.vm.areas <- voronoi.area(fd3.vm) plot(fd3.vm) text(fd3$x, fd3$y, round(fd3.vm.areas,5)) # }
Run the code above in your browser using DataCamp Workspace