areaRegion: Computes area of a region

Description Usage Arguments Value Warning Examples

View source: R/areaRegion.R

Description

This function computes the area of a region by first finding the area of the bounding polygon, then subtracting the area of each hole.

Usage

1
areaRegion(formLatticeOutput)

Arguments

formLatticeOutput

An object returned by formLattice or editLattice.

Value

Numeric The area of the bounded region.

Warning

Note that this program does not check to see if the holes are non-intersecting or if the holes intersect the polygon.

Examples

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)

latticeDensity documentation built on April 18, 2021, 5:06 p.m.