linkRefs,AxialShapeGraph-method {alcyon}R Documentation

Link two Axial Lines (refs)

Description

Link two lines on an Axial ShapeGraph using their refs

Usage

## S4 method for signature 'AxialShapeGraph'
linkRefs(map, fromRef, toRef, copyMap = TRUE)

Arguments

map

An Axial ShapeGraph

fromRef

Ref of the first link line

toRef

Ref of the second link line

copyMap

Optional. Copy the internal sala map

Value

A new Axial ShapeGraph with linked 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")
linkRefs(shapeGraph, 0L, 9L)

[Package alcyon version 0.4.0 Index]