project_on_trajectory | R Documentation |
Projects every barcode spot onto the trajectory.
project_on_trajectory(coords_df, traj_df, width, ...)
traj_df |
A data.frame specifying the course of the trajectory. Requires x and y variables that correspond to the position of the points that build the trajectory. If nrow(traj_df) == 2, the trajectory is a straight geometrical vector and handled as such. If nrow(traj_df) >= 3, the trajectory is considered to have a curvature. |
width |
Numeric value that determines the width of the trajectory. |
A data.frame containing the variables barcodes, sample, x, y as well as
projection_length: indicating the position of every barcode-spot with respect to the direction of the trajectory. The higher the barcode-spots value is the farther away it is from the starting point of the trajectory it belongs to.
trajectory_part: indicating the part of the trajectory the barcode-spot belongs to. Depracated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.