Shiny R Action Button Controls Reactive Elements

笑着哭i 提交于 2019-12-05 19:33:36

Use isolate in the renderPlot() so that it will only update when the input$go button is fired. If you do this the plot will not redraw when the other reactive elements are changed, but the input$go is outside of the isolate so it will cause the plot to redraw.

 output$Plot <- renderPlot({
    input$go
    isolate( 
        hist(dataInput()$data_load$Col3[study()$study_choose]) 
    )
  })
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!