View source: R/SegmentShapeGraph.R
axialToSegmentShapeGraph | R Documentation |
Convert an Axial ShapeGraph to a Segment ShapeGraph
axialToSegmentShapeGraph(axialShapeGraph, stubRemoval = NULL)
axialShapeGraph |
An Axial ShapeGraph |
stubRemoval |
Remove stubs of axial lines shorter than this percentage (for example provide 0.4 for 40%) |
A new Segment ShapeGraph
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")
axialToSegmentShapeGraph(shapeGraph, stubRemoval = 0.4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.