flowmap | R Documentation |
Use historical movement data to generate flowmap, which records mobility statistics between two locations 'from' and 'to'.
flowmap(uid, loc, time, gap = 8 * 3600)
uid |
a vector to record user identities |
loc |
a 1D vector to record locations of movement history |
time |
the timestamp (SECONDS) vector of movement history |
gap |
the maximum dwelling time to consider a valid move between locations. |
a data frame with four columns: from, to, total, unique (users)
gen.sessions
, flowmap2
, flow.stat
,
plot_flowmap
data(movement) res <- with(movement, flowmap(id, loc, time)) head(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.