flowmap2 | R Documentation |
Use historical movement data to generate flowmap, which records mobility statistics between two locations 'from' and 'to'.
flowmap2(uid, loc, stime, etime, gap = 86400)
uid |
a vector to record user identities |
loc |
a 1D vector to record locations of movement history |
stime, etime |
compressed session time at each location |
gap |
the maximum dwelling time to consider a valid move between locations |
Different from flowmap
, compressed movement history is used to
generate flow statistics.
a data frame with four columns: from, to, total, unique (users)
gen.sessions
, flowmap
, flow.stat
,
plot_flowmap
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.