Description Usage Arguments Value Examples
Merges information from graph object into source network file, generating a shapefile with traffic flow information
1 | graph_to_sf(graph, network)
|
graph |
graph object created with configure_graph() function |
network |
sf object containing network data |
Simple feature collection containing network data
1 2 3 4 5 6 | flist <- configure_graph(sioux_network,sioux_zones,use_cost_col=TRUE)
graph <- flist[[1]]
zones <- flist[[2]]
demand <- configure_demand(sioux_demand,zones)
graph <- solve_ue(graph,demand,col = 'demand')
network <- graph_to_sf(graph,sioux_network)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.