dodgr_flowmap | R Documentation |
dodgr
flows.Create a map of the output of dodgr_flows_aggregate or dodgr_flows_disperse
dodgr_flowmap(net, bbox = NULL, linescale = 1)
net |
A street network with a |
bbox |
If given, scale the map to this bbox, otherwise use entire extend
of |
linescale |
Maximal thickness of plotted lines |
net
should be first passed through merge_directed_graph
prior to plotting, otherwise lines for different directions will be overlaid.
Other misc:
compare_heaps()
,
dodgr_full_cycles()
,
dodgr_fundamental_cycles()
,
dodgr_insert_vertex()
,
dodgr_sample()
,
dodgr_sflines_to_poly()
,
dodgr_vertices()
,
merge_directed_graph()
,
summary.dodgr_dists_categorical()
,
write_dodgr_wt_profile()
graph <- weight_streetnet (hampi)
from <- sample (graph$from_id, size = 10)
to <- sample (graph$to_id, size = 5)
to <- to [!to %in% from]
flows <- matrix (
10 * runif (length (from) * length (to)),
nrow = length (from)
)
graph <- dodgr_flows_aggregate (graph, from = from, to = to, flows = flows)
# graph then has an additonal 'flows` column of aggregate flows along all
# edges. These flows are directed, and can be aggregated to equivalent
# undirected flows on an equivalent undirected graph with:
graph_undir <- merge_directed_graph (graph)
## Not run:
dodgr_flowmap (graph_undir)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.