nodeFilling: Produces a grid of locations inside the region boundary.

Description Usage Arguments Details Value Author(s) References Examples

View source: R/nodeFilling.R

Description

nodeFilling produces a grid of locations that are the nodes in the diffusion process.

Usage

1
nodeFilling(poly, node_spacing, hole_list = NULL)

Arguments

poly

A matrix that contains the vertices of the bounding polygon.

node_spacing

The distance between grid locations.

hole_list

Optional list of holes to be removed from the region

Details

nodeFilling superimposes a square grid of points over the region, with spacing given by the parameter node_spacing. The points contained in the region are retained. The output, a nodeFillingOutput object, contains the boundaries of the region (and holes), the set of nodes, and EW and NS coordinates necessary for creating a contour plot.

Value

An object of type nodeFillingOutput is produced.

Author(s)

Ronald P. Barry

References

Ronald P. Barry, Julie McIntyre. Estimating animal densities and home range in regions with irregular boundaries and holes: A lattice-based alternative to the kernel density estimator. Ecological Modelling 222 (2011) 1666-1672. <doi:10.1016/j.ecolmodel.2011.02.016>

Examples

1
2
3
4
5
6
plot.new()
data(polygon1)
nodeFillingOutput <- nodeFilling(poly=polygon1,node_spacing=0.02)
plot(nodeFillingOutput)
formLatticeOutput <- formLattice(nodeFillingOutput)
plot(formLatticeOutput)

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