Description Usage Arguments Value
View source: R/project_waypoints.R
Project the waypoints
1 2 3 4 5 6 7 8 | project_waypoints_coloured(
trajectory,
cell_positions,
edge_positions = NULL,
waypoints = dynwrap::select_waypoints(trajectory),
trajectory_projection_sd = sum(trajectory$milestone_network$length) * 0.05,
color_trajectory = "none"
)
|
trajectory |
A dynwrap trajectory. |
cell_positions |
The positions of the cells in 2D. Must be a tibble with character column |
edge_positions |
The positions of the edges. |
waypoints |
The waypoints to use for projecting. Can by generated using |
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". |
A named list containing items:
segments: A tibble containing columns comp_1
(numeric), comp_2
(numeric), waypoint_id
(character), milestone_id
(character), from
(character), to
(character)
percentage
(numeric), group
(factor), and arrow
(logical).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.