db.point2cell {RGeostats}  R Documentation 
Calculate Surface and Volume of the Voronoi of a set of isolated points
db.point2cell(db, dbgrid, option=0, name.size=NA, flag.plot = TRUE, flag.grid = TRUE, radix = "Point2Cell", modify.target = db.locmod(), ...)
db 
The 
dbgrid 
The 
option 
Type of structuring element or connectivity:

name.size 
Name of the variable which contains the thickness of the Voronoi polygon 
flag.plot 
When TRUE, the result of the Voronoi is displayed with the set of isolated points overlaid. 
flag.grid 
Defines the resulting argument: 
radix 
Radix of the name given to the output variable in any resulting file. 
modify.target 
Decides whether or not the newly created variables will have their
locator defined or not. For more information, see 
... 
Arguments passed to db.plot function. 
The returned structure depends upon argument 'flag.grid'.
TRUE The resulting argument is the Db containing the discretized grid containing the new variable corresponding to the Voronoi edge. Each pixel is set to 0 if inside the cell and to 1 if on the edge.
FALSE The resulting argument is the Db containing containing three new variables:
The Volume of the Voronoi cells
The Perimeter of the Voronoi cells
The Code equal to 2 if the Voronoi cell intersects the edge of the Discretized Grid and to 1 otherwise