如何在 R Shiny 中更改谷歌气泡图的播放速度?



我目前正在使用Shiny和google气泡图进行我的项目。 我的项目看起来与闪亮的画廊(https://shiny.rstudio.com/gallery/google-charts.html(中的项目非常相似。但是,我的数据集比这个演示有更多的数据年。我想知道我可以用什么论据来年复一年地提高播放速度? 谢谢。

sliderInput有一个默认设置为 1000ms 的animationOptions功能,只需更改它即可。

sliderInput(inputId, label, min, max, value, step = NULL,
round = FALSE, format = NULL, locale = NULL, ticks = TRUE,
animate = FALSE, width = NULL, sep = ",", pre = NULL,
post = NULL, timeFormat = NULL, timezone = NULL,
dragRange = TRUE)
animationOptions(interval = 1000, loop = FALSE, playButton = NULL,
pauseButton = NULL)

最新更新