plot_flowmap | R Documentation |
Visualize the mobility statistics (flowmap) from data. Each row in the data will generate a line on the map.
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", ... )
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 |
col.pal.bias |
The bias coefficient used by |
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. |
gen.sessions
, flowmap
, flowmap2
,
flow.stat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.