project_waypoints_coloured: Project the waypoints

Description Usage Arguments Value

View source: R/project_waypoints.R

Description

Project the waypoints

Usage

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"
)

Arguments

trajectory

A dynwrap trajectory.

cell_positions

The positions of the cells in 2D. Must be a tibble with character column cell_id and numeric columns comp_1 and comp_2.

edge_positions

The positions of the edges.

waypoints

The waypoints to use for projecting. Can by generated using 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".

Value

A named list containing items:


dynplot documentation built on Dec. 11, 2021, 9:33 a.m.