Extension of the Trajectory for trajectories that have been drawn on a surface plot.

Slots

comment

character. A comment about why the trajectory was drawn.

coords

data.frame. The coordinates data.frame of the sample.

id

character. ID that uniquely identfies the trajectory in a sample.

info

list. Stores meta data and miscellaneous information regarding the image annotation. Slots that should always exist:

  • current_dim: Numeric vector of length two. Width and height of the image the @area data.frame is currently scaled to. Used to scale the @area data.frame if the image annotation is extracted and added to a SPATA2 object with different image resolution.

  • current_just: List of two slots that track justification changes. Is used to readjust the @area data.frame if the image annotation is extracted and added to a SPATA2 object with different justifications.

    • angle: Numeric value that ranges from 0-359.

    • flipped: List of two logical values named horizontal and vertical.

projection

data.frame. Data.frame that contains the length of the projection of each barcode spot onto the trajectory.

sample

character. The sample name.

segment

data.frame. Contains the course of the trajetory in form of a data.frame with the variables x, y, xend and yend.

width

numeric. The width of the rectangle that was spanned along the trajectory. (Length of the rectangle corresponds to the length of the segment.)

with_unit

character. The unit in which the width was specified.