Ifeanyi commited on
Commit
180765c
·
1 Parent(s): 301bbeb

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +4 -6
app.R CHANGED
@@ -41,7 +41,7 @@ ui <- list(useShinyjs(),navbarPage(windowTitle = "TrendChecker",
41
  actionButton("run",strong("Run Search"),icon("caret-right"))
42
  ),
43
  mainPanel(
44
- withSpinner(plotlyOutput("plot"),type = 8))
45
 
46
  ))
47
  ))
@@ -93,10 +93,8 @@ trend <- function(){
93
  time = radio_time())
94
 
95
  p <- plot(gt)
96
-
97
- gp <- ggplotly(p)
98
-
99
- return(gp)
100
  }
101
 
102
  ## Convert to reactive function
@@ -107,7 +105,7 @@ trend2 <- eventReactive(input$run,{
107
 
108
  ## Create interactive plot
109
 
110
- output$plot <- renderPlotly({
111
 
112
  withProgress(message = "Fetching data",
113
  detail = "This may take a while...",value = 0,{
 
41
  actionButton("run",strong("Run Search"),icon("caret-right"))
42
  ),
43
  mainPanel(
44
+ withSpinner(plotOutput("plot"),type = 8))
45
 
46
  ))
47
  ))
 
93
  time = radio_time())
94
 
95
  p <- plot(gt)
96
+
97
+ return(p)
 
 
98
  }
99
 
100
  ## Convert to reactive function
 
105
 
106
  ## Create interactive plot
107
 
108
+ output$plot <- renderPlot({
109
 
110
  withProgress(message = "Fetching data",
111
  detail = "This may take a while...",value = 0,{