unmakeVGAGraph: Unmake the graph in a LatticeMap

View source: R/prepareVGA.R

unmakeVGAGraphR Documentation

Unmake the graph in a LatticeMap

Description

Unmake the graph in a LatticeMap

Usage

unmakeVGAGraph(
  latticeMap,
  removeLinks = FALSE,
  copyMap = TRUE,
  verbose = FALSE
)

Arguments

latticeMap

The input LatticeMap

removeLinks

Also remove the links

copyMap

Optional. Copy the internal sala map

verbose

Optional. Show more information of the process.

Value

A new LatticeMap without the points graph

Examples

mifFile <- system.file(
    "extdata", "testdata", "simple",
    "simple_interior.mif",
    package = "alcyon"
  )
  sfMap <- st_read(mifFile,
    geometry_column = 1L, quiet = TRUE
  )
  shapeMap <- as(sfMap[, vector()], "ShapeMap")
latticeMap <- makeVGALatticeMap(
  sfMap,
  gridSize = 0.5,
  fillX = 3.01,
  fillY = 6.7,
  maxVisibility = NA,
  boundaryGraph = FALSE,
  verbose = FALSE
)
unmakeVGAGraph(
  latticeMap = latticeMap,
  removeLinks = FALSE
)

alcyon documentation built on Aug. 30, 2026, 1:07 a.m.