This function generates trajectories for the plotted points in the ENA plot based on the specified grouping variables. It supports options for jittering, animation, and scaling.
with_trajectory(
x,
...,
by = x$`_function.params`$conversation[1],
add_jitter = TRUE,
frame = 1100,
transition = 1000,
easing = "circle-in-out"
)
Invisibly returns the modified ENA set object with updated plots.
An ENA set object containing the plots.
Additional arguments passed to the plotting functions.
A character vector specifying the grouping variables for the trajectories. Default is the first conversation parameter in the ENA set.
Logical; if `TRUE`, adds jitter to the trajectory points. Default is `TRUE`.
Numeric; the duration of each frame in the animation. Default is 1100.
Numeric; the duration of the transition between frames. Default is 1000.
A character string specifying the easing function for the animation. Default is "circle-in-out".