I want to display a dashboard that updates plots in real time. For example, consider a data rate of 30 Hz, every 1/30th of a second a data point is inserted into a table. At this time I want the plot to update by removing 1 data point and adding the new one in.
So the solution I found is:
output$rawData <- renderPlot({
reactiveTimer(1000/30)
dataUpdateAndPlot(input)
})
The problem is that this is really choppy, I'm using ggplot for the plots in the update function. I realize that 30 times per second is perhaps to fast for my server PC but I have tried as few as 1 second updates and still cant seem to get it smooth. Has anyone had any experience with this kind of method? I am new to shiny so maybe I am approaching this wrong. Any tips?
Thanks