A Web-Based Graphics Device for Animated Visualisations
A web-based graphics device for animated visualisations
The HTML dependency of an 'animate' plot
Create an animate output (container) element
Click an element to play all frames
Click an element to play a frame
Launch the 'FFmpeg'-based video editor ('Shiny' app)
'FFmpeg' command builder
'FFmpeg'-based video editor ('Shiny' app)
Insert an animated plot into an R Markdown document
Loop through the available frames n times
A utility function for generating IDs
In-line rendering of an animated plot in an R Markdown document
Start a Websocket server
Implements a web-based graphics device for animated visualisations. Modelled on the 'base' syntax, it extends the 'base' graphics functions to support frame-by-frame animation and keyframes animation. The target use cases are real-time animated visualisations, including agent-based models, dynamical systems, and animated diagrams. The generated visualisations can be deployed as GIF images / MP4 videos, as 'Shiny' apps (with interactivity) or as HTML documents through embedding into R Markdown documents.