unlinkRefs,PointMap-method {alcyon}R Documentation

Unlink two PointMap Cells (refs)

Description

Unlink two cells on an PointMap using their refs

Usage

## S4 method for signature 'PointMap'
unlinkRefs(map, fromRef, toRef, copyMap = TRUE)

Arguments

map

A PointMap

fromRef

Ref of the first unlink line

toRef

Ref of the second unlink line

copyMap

Optional. Copy the internal sala map

Value

A new PointMap with unlinked points

Examples

mifFile <- system.file(
    "extdata", "testdata", "gallery",
    "gallery_lines.mif",
    package = "alcyon"
  )
  sfMap <- st_read(mifFile,
    geometry_column = 1L, quiet = TRUE
  )
  pointMap <- makeVGAPointMap(
    sfMap,
    gridSize = 0.04,
    fillX = 3.01,
    fillY = 6.7,
    maxVisibility = NA,
    boundaryGraph = FALSE,
    verbose = FALSE
  )
pointMap <- linkRefs(pointMap, 1835056L, 7208971L)
pointMap <- unlinkRefs(pointMap, 1835056L, 7208971L)

[Package alcyon version 0.4.0 Index]