linkCoords,AxialShapeGraph-method {alcyon}R Documentation

Link two Axial Lines (coordinates)

Description

Link two locations on an Axial ShapeGraph using the point coordinates

Usage

## S4 method for signature 'AxialShapeGraph'
linkCoords(map, fromX, fromY, toX, toY, copyMap = TRUE)

Arguments

map

An Axial ShapeGraph

fromX

X coordinate of the first link point

fromY

Y coordinate of the first link point

toX

X coordinate of the second link point

toY

Y coordinate of the second link point

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")
linkCoords(shapeGraph, 982.8, -1620.3, 1217.1, -1977.3)

[Package alcyon version 0.4.0 Index]