Creates an animated Plotly visualization of trajectories growing across shared calendar time / conversation turns.
Usage
ena.plot.movie(
enaplot,
points,
by,
time,
names = NULL,
colors = NULL,
smooth = c("none", "poly"),
poly.degree = NULL,
poly.max.degree = 3L,
poly.eval.points = 100L,
show.points = TRUE,
frame_ms = 250,
show_tips = TRUE,
title = NULL
)Arguments
- enaplot
ENAplotobject to use for plotting base canvas- points
Data frame or matrix of points with 2 coordinate dimensions
- by
Vector identifying trajectory groupings (e.g. speaker/unit)
- time
Monotonic time/turn index vector corresponding to points
- names
Character vector of labels for each trajectory
- colors
Character vector of colors for each trajectory
- smooth
Character indicating smoothing method: "none" (default, point-to-point) or "poly" (LOOCV-2D polynomial curve)
- poly.degree
Optional integer degree for polynomial fit. If NULL, selected automatically via LOOCV-2D
- poly.max.degree
Maximum polynomial degree to test in LOOCV-2D (default 3)
- poly.eval.points
Number of points along smooth curve (default 100)
- show.points
Logical; whether to show discrete point markers along the trajectory (default TRUE)
- frame_ms
Milliseconds per animation frame (default 250)
- show_tips
Logical; whether to show glowing tip markers at current time position
- title
Optional title string
