View source: R/helper-functions.R
hlpr_compile_trajectory | R Documentation |
Compiles a trajectory data.frame
hlpr_compile_trajectory( segment_trajectory_df, trajectory_width, object, sample )
segment_trajectory_df |
A data.frame specifying each segment of the whole
trajectory with variables |
trajectory_width |
Numeric value that determines the width of the trajectory. |
object |
A valid spata-object. |
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-part. The higher the barcode-spots value is the farther away it is from the starting point of the trajectory-part it belongs to.
trajectory_part: indicating the part of the trajectory the barcode-spot belongs to.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.