Description Usage Arguments Value Author(s) See Also Examples
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.
1 | editLattice(formLatticeOutput)
|
formLatticeOutput |
An object from formLattice or editLattice. |
a formLatticeOutput object, which contains
EWlocs EW coordinates for use in contour.
NSlocs NS coordinates for use in contour.
nodes Matrix of node locations.
poly Matrix of vertices of the boundary polygon.
latt Lattice object as generated by dnearneigh of package spdep.
Ronald P. Barry
formLattice
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.