ggpLayerTrajectoryFrame.Rd
This function generates a ggplot layer representing a trajectory
frame based on a specified trajectory segment in a spata2
object. It creates
a rectangular frame around the trajectory segment, with customizable appearance.
ggpLayerTrajectoryFrame(
object,
id,
width = getTrajectoryLength(object, id),
rect_alpha = 1,
rect_color = "black",
rect_linesize = 1,
rect_linetype = "solid"
)
An object of class SPATA2
or, in case of S4 generics,
objects of classes for which a method has been defined.
The identifier of the trajectory segment within the spata2
object.
Distance measure. The width of the trajectory frame, defaulting to the trajectory length.
The alpha transparency level of the rectangle's border
The color of the rectangle's border.
The size of the line used for the rectangle's border.
The type of line used for the rectangle's border.
ggpLayer*()
-functions return lists of ggproto
objects
that can be added to ggplots via the +
operator. In most of the cases
they are supposed to be added to plots created with the plotSurface*()
family.