我目前正在使用 Shiny 和 google 气泡图来处理我的项目。我的项目看起来与闪亮画廊( https://shiny.rstudio.com/gallery/google-charts.html)中的项目非常相似。但是,我的数据集比这个演示包含更多年的数据。我想知道我可以用什么论据来逐年提高播放速度?谢谢你。
1 回答
1
sliderInput具有animationOptions默认设置为 1000 毫秒的功能,只需更改它即可。
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)
于 2020-06-02T18:41:01.250 回答