plot_flowmap: Plot flowmap

Description Usage Arguments Value Examples

View source: R/plot_flowmap.R

Description

Quick timap plot from flows in network

Usage

1
2
3
4
5
6
7
plot_flowmap(
  network,
  flow_factor = 1,
  scale_factor = 10,
  show_labels = FALSE,
  bbox
)

Arguments

network

Simple feature collection containing network with flow data

flow_factor

Exponential factor for flow map display

scale_factor

Tmap scale factor for tm_lines function

show_labels

Should map (tmap) display text labels? (TRUE) or (FALSE)

bbox

sf bbox object

Value

Nothing; the function outputs in plot window

Examples

1
2
3
4
5
6
7
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)
plot_flowmap(network,show_labels = TRUE)

douglascm/trafficr documentation built on March 13, 2020, 11:44 a.m.