[英]Shiny Application: ggplot() shows up in RStudio Viewer and not my mainpanel
我編寫了一個閃亮的應用程序,該應用程序可以正常運行且沒有錯誤,但是每次運行該程序時,ggplot()都會在RStudio的查看器面板中繪制,但是我希望它顯示在主面板中。 如何在閃亮的應用程序的mainPanel中進行切換和繪圖?
在我的代碼中,我的mainPanel不在sidebarPanel內,並且plotOutput被正確調用。
mainPanel(plotOutput("plot1"))
這是對plot1的服務器調用。 我所有的數據ggplot()
操作和ggplot()
代碼都在data1()
output$plot1 <- renderPlot({data1()})
代替
plotOutput() and renderPlot()
采用:
ggiraphOutput() and renderggiraph()
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.