Are there any packages available for streaming animations?

Viewed 14

I have a device streaming data to the PC and I would like to use R to produce real-time streaming plots. I realize that Javascript is probably the best tool for this, but I don't have the skill set for reading data and plotting in Javascript.

I am aware of gganimate, gifski, etc. for animated gifs, but I don't think those will be able to stream data.

I have tried Shiny with invalidateLater and it works, but struggles to update faster than about 5 frames per second.

I have tried to run an R process to generate images on a timer and a simple html page that loads the image every 100 ms, but this produces frequent broken links when the html page is trying to load an image that R is actively writing.

Are there any other options in R that don't involve learning Javascript or Javascript packages? Any other general advice?

0 Answers
Related