View source: R/getTopFeatures.R
getTopFeatures | R Documentation |
Sorts features by a specific column and extracts the top x percent
getTopFeatures(lineStringMap, column, percent)
lineStringMap |
An sf lineString map |
column |
The column to use to extract the features from |
percent |
Percentage of features (to total) to extract |
The lineString map filtered and sorted
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")
shapeGraph <- allToAllTraverse(
shapeGraph,
traversalType = TraversalType$Topological,
radii = c("n", "3"),
includeBetweenness = TRUE
)
getTopFeatures(shapeGraph, "Connectivity", 0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.