plot_traj_graph: Visualize individual's trajectories.

View source: R/plot_mobility.R

plot_traj_graphR Documentation

Visualize individual's trajectories.

Description

This function plots a trajectory of a specific user as a weighted graph. Each node represents a stay point whose size indicates the (log) length of dwelling time. Each directed edge means the existence transition between stay points and its width indicates the (log) transition frequencies.

Usage

plot_traj_graph(loc, time, ...)

Examples

data(movement)

user <- subset(movement, id==20)
plot_traj_graph(user$loc, user$time)

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