Project the waypoints

Project the waypoints

project_waypoints(trajectory, cell_positions,
  waypoints = dynwrap::select_waypoints(trajectory),
  trajectory_projection_sd = sum(trajectory$milestone_network$length) *
  0.05, color_trajectory = "none")

Arguments

trajectory

The trajectory

cell_positions

The positions of the cells

waypoints

The waypoints to use for projecting, as generated by [dynwrap::select_waypoints()]

trajectory_projection_sd

The standard deviation of the gaussian kernel

color_trajectory

How to color the trajectory, can be "nearest" for coloring to nearest cell, or "none"