Render video from trajectory
render_trajectory_video.Rd
The function repeatedly calls plot_position function to generate preview of the trajectory motion. Extra time is added before and after the motion sequence (2 seconds each).
Usage
render_trajectory_video(
filename,
trajectory,
settings = default_settings(),
targets = NULL,
outdir = getwd(),
...
)
Examples
if (FALSE) { # \dontrun{
# this example can take 30 seconds to run
# set ffmpeg in necessary
# ani.options(ffmpeg = "/PATH/TO/ffmpeg/ffmpeg")
render_trajectory_video("trajectory.mp4", trajectory8c,
new_settings(show_labels = TRUE),
targets = 1:4
)
} # }