Learn R Programming

latticeDensity (version 1.2.7)

plot.formLatticeOutput: Plot the lattice.

Description

This function plots the boundary, holes, nodes and neighbor lattice for the lattice based density or regression estimators. The plot can be examined to determine whether the lattice of connected nodes fills the region. If some nodes are connected when they should not be, or are disconnected when they should be connected, use editLattice to add or remove neighbor links.

Usage

# S3 method for formLatticeOutput
plot(x, ...)

Value

No return value, called for side effects

Arguments

x

An object of type formLatticeOutput returned by either formLattice or editLattice.

...

Other arguments to be passed to functions plot, points, lines.

Author

Ronald P. Barry

Examples

Run this code
plot.new()
data(polygon1)
nodeFillingOutput <- nodeFilling(poly=polygon1, node_spacing=0.015)
plot(nodeFillingOutput)
formLatticeOutput <- formLattice(nodeFillingOutput)
plot(formLatticeOutput)

Run the code above in your browser using DataLab