我正在renderPlotly为我的 ggplot 图使用闪亮的。当我运行应用程序时,没有显示错误,但也没有渲染图。我的代码有问题吗?
这是我的数据集的示例
year region mean_price
<int> <fct> <dbl>
1 2007 Central 360769.
2 2007 East 255519.
3 2007 North 218453.
4 2007 North_East 263780.
5 2007 West 233401.
6 2008 Central 429607.
Run Code Online (Sandbox Code Playgroud)
这是我的代码
library("shiny")
library("shinythemes")
library('plotly')
ui <-fluidPage(
theme=shinytheme("superhero"),
titlePanel("Average Resale Prices "),
sidebarLayout(
sidebarPanel(
selectInput("year","Year", choices = c("All","2007","2008",
"2009","2010","2011",
"2012","2013","2014",
"2015","2016","2017"), selected="All"),
selectInput("region",'Region',choices=c("All",'North','Central','North-East','West','East'),selected="All"),
selectInput("type","Flat-Type",choices = c("All","3 ROOM",'4 ROOM',"5 ROOM"),selected = "All"),width = 2
),
mainPanel(
tabsetPanel(
tabPanel("Summary", plotOutput(outputId = "lineChart")),
tabPanel("Breakdown", plotOutput(outputId = "lineChart1")),
type="tab" …Run Code Online (Sandbox Code Playgroud)