unlinkCoords,AxialShapeGraph-method {alcyon} | R Documentation |
Unlink two Axial Lines (coordinates)
Description
Unlink two locations on an Axial ShapeGraph using the point coordinates
Usage
## S4 method for signature 'AxialShapeGraph'
unlinkCoords(map, fromX, fromY, toX, toY, copyMap = TRUE)
Arguments
map |
An Axial ShapeGraph |
fromX |
X coordinate of the first unlink point |
fromY |
Y coordinate of the first unlink point |
toX |
X coordinate of the second unlink point |
toY |
Y coordinate of the second unlink point |
copyMap |
Optional. Copy the internal sala map |
Value
A new Axial ShapeGraph with unlinked lines
Examples
mifFile <- system.file(
"extdata", "testdata", "barnsbury",
"barnsbury_small_axial_original.mif",
package = "alcyon"
)
sfMap <- st_read(mifFile,
geometry_column = 1L, quiet = TRUE
)
shapeGraph <- as(sfMap, "AxialShapeGraph")
unlinkCoords(shapeGraph, 982.8, -1620.3, 1080.4, -1873.5)
[Package alcyon version 0.4.0 Index]