Description Usage Arguments Value Warning Examples
This function computes the area of a region by first finding the area of the bounding polygon, then subtracting the area of each hole.
1 | areaRegion(formLatticeOutput)
|
formLatticeOutput |
An object returned by formLattice or editLattice. |
Numeric The area of the bounded region.
Note that this program does not check to see if the holes are non-intersecting or if the holes intersect the polygon.
1 2 3 4 5 6 7 8 | data(areaRegionExample)
attach(areaRegionExample)
hole_list <- list(hole1,hole2)
nodeFillingOutput <- nodeFilling(poly=boundary, node_spacing=0.03,
hole_list = hole_list)
formLatticeOutput <- formLattice(nodeFillingOutput)
plot(formLatticeOutput)
areaRegion(formLatticeOutput)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.