render_trajectory_video | R Documentation |
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).
render_trajectory_video( filename, trajectory, settings = default_settings(), targets = NULL, outdir = getwd(), ... )
filename |
the file name of output video (e.g. "trajectory.mp4") |
trajectory |
tibble with trajectory data |
settings |
list with basic properties |
targets |
Which objects should be treated as targets |
outdir |
output directory where the video is saved |
... |
Parameters passed to 'plot_position' |
No return value
## Not run: # 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 ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.