editLattice: Add or remove links in the lattice

Description Usage Arguments Value Author(s) See Also Examples

Description

editLattice is an interactive editor based on the function edit.nb from the package spdep. A formLatticeOutput object includes an automatically generated neighborhood structure. Occasionally this will either leave two nodes disconnected that should be connected or vice versa. editLattice allows the user to directly edit the plot of the lattice using mouseclicks to add or remove neighbor links between nodes.

Usage

1
editLattice(formLatticeOutput)

Arguments

formLatticeOutput

An object from formLattice or editLattice.

Value

a formLatticeOutput object, which contains

Author(s)

Ronald P. Barry

See Also

formLattice

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
plot.new()
data(polygon1)
nodeFillingOutput = nodeFilling(poly=polygon1, node_spacing=0.03)
plot(nodeFillingOutput)
formLatticeOutput = formLattice(nodeFillingOutput)
plot(formLatticeOutput)
formLatticeOutput = editLattice(formLatticeOutput)
#
#  Paste the code above into R, then do the editing before
#  pasting the code below into R.
#
Pointdata = splancs::csr(polygon1,20)
densityOut = createDensity(formLatticeOutput,PointPattern=Pointdata,
                  k=150,intensity=FALSE, sparse = TRUE)
plot(densityOut)

## End(Not run)

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