title: Reactive function not working in shiny ggplot. Plot is blank
body: <p>Thank you in advance for the help. I am trying to reference a reactive dataframe in renderplot and then eventually I would also like to reference the same dataframe in a rendertable. the plot keeps showing up blank with no data. Any thoughts on what I am doing wrong? I am fairly new to shiny still, so sorry if its a beginner no brainer question.</p>
  
  <pre><code>ui &lt;- fluidPage(
  
     titlePanel("Moving Average Backtest"),
  
     sidebarLayout(
        sidebarPanel(
           dateRangeInput("DateRange","Select Dates"),
           numericInput("SDRoll","Select rolling Vol", value = 255)
        ),
  
  
    mainPanel(
       plotOutput("Chart"),
       tableOutput("Risk_Return")
      )
    )
  )
  
  server &lt;- function(input, output) {
  
  
  
   dateTriggerBegin&lt;- reactive({input$DateRange[1]})
   dateTriggerEnd&lt;- reactive({input$DateRange[2]})
  
   library(dplyr)
   library(tidyr)
   library(ggplot2)
   library(zoo)
   library(PerformanceAnalytics)
   library(quantmod)
  
   #setwd("P:/Anthony/R/Moving Average")
   Main_DF &lt;- reactive({   
  
    Roll_Avg3 &lt;- group_by(Roll_Avg2, Date)%&gt;%
     summarize(Total_weighted_return = sum(TotalReturn)+1)%&gt;% 
     filter(row_number() &gt; 255)%&gt;%
     filter(Date &gt;= dateTriggerBegin() &amp; Date &lt;= dateTriggerEnd())%&gt;%
     mutate(Total_Cum_Return = cumprod(Total_weighted_return))%&gt;%
     mutate(Total_Cum_DollarRet = Total_Cum_Return*1000000)
  
    })     
  
  output$Chart &lt;- renderPlot({
  
    Roll_Avg4 &lt;- Main_DF()$Roll_Avg3
  
    ggplot(Roll_Avg4, aes(x = Roll_Avg4$Date, y = Roll_Avg4$Total_Cum_DollarRet )+geom_line()
  
  })
  </code></pre>