plotly graph doesn't show up

前端 未结 1 485
粉色の甜心
粉色の甜心 2021-01-21 17:40

I\'m using shiny and I can\'t get a plotly graph to appear. It was appearing before, I don\'t know what changed.

MRE:

global.r (or put this into server.r)

相关标签:
1条回答
  • 2021-01-21 18:29
    renderPlotly({
    return(plot_ly(x))
    })
    

    is broken.

    renderPlotly(plot_ly(x)) 
    

    works.

    To do more work before rendering the plotly, do something like

    renderPlotly(yourFunctThatGeneratesAPlotly(input$Whatever))
    
    0 讨论(0)
提交回复
热议问题