makeVGAPointMap | R Documentation |
This is intended to be a single command to get from the lines to a PointMap ready for analysis
makeVGAPointMap(
lineStringMap,
gridSize,
fillX,
fillY,
maxVisibility = NA,
boundaryGraph = FALSE,
verbose = FALSE
)
lineStringMap |
Map of lines, either a ShapeMap, or an sf lineString map |
gridSize |
Size of the cells |
fillX |
X coordinate of the fill points |
fillY |
Y coordinate of the fill points |
maxVisibility |
Limit how far two cells can be to be connected |
boundaryGraph |
Only create a graph on the boundary cells |
verbose |
Optional. Show more information of the process. |
A new PointMap
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")
makeVGAPointMap(
sfMap,
gridSize = 0.5,
fillX = 3.01,
fillY = 6.7,
maxVisibility = NA,
boundaryGraph = FALSE,
verbose = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.