Learn R Programming

tripack (version 1.3-9.2)

voronoi.polygons: extract polygons from a voronoi mosaic

Description

This functions extracts polygons from a voronoi.mosaic object.

Usage

voronoi.polygons(voronoi.obj)

Value

Returns an object of class voronoi.polygons with unamed list elements for each polygon. These list elements are matrices with columns x and y.

Arguments

voronoi.obj

object of class voronoi.mosaic

Author

Denis White

See Also

plot.voronoi.polygons,voronoi.mosaic

Examples

Run this code
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	     or do  help(data=index)  for the standard data sets.

data(tritest)
tritest.vm <- voronoi.mosaic(tritest$x,tritest$y)
tritest.vp <- voronoi.polygons(tritest.vm)
tritest.vp

Run the code above in your browser using DataLab