Learn R Programming

alcyon (version 0.7.0)

reduceToFewest: Reduce an All-line Map to two types of fewest-line maps

Description

Reduce an All-line Map to two types of fewest-line maps

Usage

reduceToFewest(allLineMap)

Value

A list with two fewest-line axial ShapeGraphs

Arguments

allLineMap

An AllLineShapeGraph

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")
allLineMap <- makeAllLineMap(
  shapeMap,
  seedX = 3.01,
  seedY = 6.7
)
reduceToFewest(allLineMap)

Run the code above in your browser using DataLab