title: How can I pass data between functions in a Shiny app
body: <p>I have a shiny app where server.r including the following code</p>
  
  <pre><code>shinyServer(function(input, output) {
  
    data &lt;- reactive(function() {
     # some processing
     df # dataframe with columns: name,date,count 
   })
  
    output$plot1 &lt;- reactivePlot(function() {
     # boxplot based on df$count grouped by df$name
   })
  
   output$plot2 &lt;- reactivePlot(function() {
     # linegraph based on x=df$date, y=df$count grouped by df$name
   })
  })     
  </code></pre>
  
  <p>How do I construct it so that I can reference in the reactivePlots the df$count etc. I have created in the reactive function , 'data'</p>
  
  <p>cheers</p>