plot_flowmap: Visualize flowmap.

View source: R/flowmap.R

plot_flowmapR Documentation

Visualize flowmap.

Description

Visualize the mobility statistics (flowmap) from data. Each row in the data will generate a line on the map.

Usage

plot_flowmap(
  from_lat,
  from_lon,
  to_lat,
  to_lon,
  dist.log = TRUE,
  weight = NULL,
  weight.log = TRUE,
  gc.breaks = 5,
  col.pal = c("white", "blue", "black"),
  col.pal.bias = 0.3,
  col.pal.grad = 200,
  new.device = TRUE,
  bg = "black",
  ...
)

Arguments

from_lat

The latitude coordinates of departing point for mobile transitions.

from_lon

The longitude coordinates of departing point for mobile transitions.

to_lat

The latitude coordinates of arriving point for mobile transitions.

to_lon

The longitude coordinates of arriving point for mobile transitions.

dist.log

Whether using log-scale distance for line color.

weight

The user-defined weight for line color. Larger weight corresponds to lefter color of col.pal.

weight.log

Whether using log-scale weight for line color.

gc.breaks

The number of intermediate points (excluding two ends) to draw a great circle path.

col.pal

A color vector used by colorRampPalette; must be a valid argument to col2rgb. Refer to colorbrewer2.org to derive more palettes.

col.pal.bias

The bias coefficient used by colorRampPalette. Higher values give more widely spaced colors at the high end.

col.pal.grad

The number of color grades to differentiate distance.

new.device

Whether creating a new device for current plot. Set this parameter as FALSE when trying to plot multiple flowmaps in one figure.

bg

The background color for current plot. It is working when new.device is TRUE.

...

Extra parameters for basic plot() function.

See Also

gen.sessions, flowmap, flowmap2, flow.stat


caesar0301/movr documentation built on June 18, 2022, 2:37 a.m.