Learn R Programming

alcyon (version 0.7.0)

unmakeVGAGraph: Unmake the graph in a PointMap

Description

Unmake the graph in a PointMap

Usage

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

Value

A new PointMap without the points graph

Arguments

pointMap

The input PointMap

removeLinks

Also remove the links

copyMap

Optional. Copy the internal sala map

verbose

Optional. Show more information of the process.

Examples

Run this code
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")
pointMap <- makeVGAPointMap(
  sfMap,
  gridSize = 0.5,
  fillX = 3.01,
  fillY = 6.7,
  maxVisibility = NA,
  boundaryGraph = FALSE,
  verbose = FALSE
)
unmakeVGAGraph(
  pointMap = pointMap,
  removeLinks = FALSE
)

Run the code above in your browser using DataLab