Learn R Programming

latticeDensity (version 1.2.7)

removeHole: Removes holes from the region prior to density estimation.

Description

If a hole in a region is specified as a polygon, the function removeHole removes all nodes in the nodeFillingOutput that are contained in the hole. This function is called by nodeFilling, so it is generally not needed by users.

Usage

removeHole(hole_poly, nodeFillingOutput)

Value

An object of type nodeFillingOutput, with values:

  • EW_locs EW coordinates for the contour plot.

  • NS_locs NS coordinates for the contour plot.

  • nodes Matrix of node locations.

  • poly Matrix of vertices of boundary polygon.

  • node_spacing Vertical and horizontal node spacing.

  • hole_list List of polygons representing holes in region.

Arguments

hole_poly

A numerical matrix of vertices of the hole polygon.

nodeFillingOutput

An object of type nodeFillingOutput, returned by nodeFilling or removeHole.

Author

Ronald P. Barry