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")
The positions of the cells
The waypoints to use for projecting, as generated by [dynwrap::select_waypoints()]
The standard deviation of the gaussian kernel
How to color the trajectory, can be "nearest" for coloring to nearest cell, or "none"