Learn R Programming

alcyon (version 0.7.0)

unlinkAtCrossPoint,AxialShapeGraph-method: Unlink two Axial Lines (crosspoint)

Description

Unlink two crossing lines on an Axial ShapeGraph at the crossing point

Usage

# S4 method for AxialShapeGraph
unlinkAtCrossPoint(map, x, y, copyMap = TRUE)

Value

A new Axial ShapeGraph with unlinked lines

Arguments

map

An Axial ShapeGraph

x

X coordinate of the unlink crossing point

y

Y coordinate of the unlink crossing point

copyMap

Optional. Copy the internal sala map

Examples

Run this code
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")
unlinkAtCrossPoint(shapeGraph, 530925.0, 184119.0)

Run the code above in your browser using DataLab