使用 R 和 mongoDB 进行实时数据可视化

Live Data Visualization using R and mongoDB

我的目标是通过传感器创建来自路灯的温度数据的可视化数据表示。我正在从 mongoDB 数据库中选取该数据。基本上根据我的知识和经验,我使用 Shiny 和 R 来显示数据库中的静态数据图,但我无法找到任何方法在移动折线图中显示持续更新的数据。我希望你能得到照片。

请参考此示例使用 node.js(我想获得与此类似的结果,但使用的是 R) https://www.youtube.com/watch?v=nauRfoNNEQs

我的问题是,有没有办法在 R 中显示实时数据可视化,或者我必须使用 node.js 和 plotly?

我不确定 "live" 你如何获得流,但你可能想看看这个:

https://shiny.rstudio.com/reference/shiny/latest/reactivePoll.html

http://shiny.rstudio.com/gallery/reactive-poll-and-file-reader.html