腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
首页
标签
shiny
#
shiny
关注
专栏文章
(35)
技术视频
(0)
互动问答
(1)
如何以固定的时间间隔更新图?
1
回答
server
、
shiny
、
ui
AcademyCityLv6
已采纳
例如,你可以在本地运行以下代码: library(shiny) runApp(list( ui = pageWithSidebar( headerPanel("Hello Shiny!"), sidebarPanel( sliderInput("obs", "Number of observations:", min = 1, max = 1000, value = 500) ), mainPanel( plotOutput("distPlot") ) ), server =function(input, output, session) { autoInvalidate <- reactiveTimer(5000, session) output$distPlot <- renderPlot({ autoInvalidate() # generate an rnorm distribution and plot it dist <- rnorm(input$obs) hist(dist) }) } )) 每5秒将生成一个不同的正常样本。...
展开详请
赞
0
收藏
0
评论
0
分享
例如,你可以在本地运行以下代码: library(shiny) runApp(list( ui = pageWithSidebar( headerPanel("Hello Shiny!"), sidebarPanel( sliderInput("obs", "Number of observations:", min = 1, max = 1000, value = 500) ), mainPanel( plotOutput("distPlot") ) ), server =function(input, output, session) { autoInvalidate <- reactiveTimer(5000, session) output$distPlot <- renderPlot({ autoInvalidate() # generate an rnorm distribution and plot it dist <- rnorm(input$obs) hist(dist) }) } )) 每5秒将生成一个不同的正常样本。
热门
专栏
YoungGy
145 文章
50 订阅
生信技能树
2.3K 文章
1.2K 订阅
生信小驿站
354 文章
166 订阅
nummy
152 文章
26 订阅
BioIT爱好者
134 文章
27 订阅
领券