title: dynamically add plots to web page using shiny
body: <p>i want to create an app using shiny that dynamically add plots to the page. it could be 10 plots and it could be only one. i'm using <a href="http://rstudio.github.io/shiny/tutorial/#dynamic-ui">this tutorial</a> in the shiny homepage for dynamic UI. </p>
  
  <p>this is a simplified example.
  the function <code>showme</code> is ploting the graph</p>
  
  <h1>server.r</h1>
  
  <pre><code>shinyServer(function(input, output) {
    # Create an environment for storing data
    symbol_env &lt;- new.env()
    # Make a chart for a symbol, with the settings from the inputs
    make_chart &lt;- function(symbol) {
      showme(symbol)
    }
  
    display &lt;- c("1083484" , "1101732")
  
    output$MyList &lt;- renderUi({ 
      for (i in i:nrow(display))
         renderPlot({make_chart(display[i])})
      })
  })
  </code></pre>
  
  <h1>ui.r</h1>
  
  <pre><code>shinyUI(pageWithSidebar(
    headerPanel("My Plots !"),
    sidebarPanel(
      wellPanel(
        p(strong("Scan1"))))
   ,mainPanel(
        uiOutput("MyList")
  )))
  </code></pre>
  
  <p>i'm getting the following error</p>
  
  <pre><code>Listening on port 8100
  Error in .subset2(x, "impl")$defineOutput(name, value, deparse(substitute(value))) : 
    Unexpected character output for display
  </code></pre>
  
  <p>if this is not the way - i would appreciate any guidance. 
  Thanks.</p>
  
  <pre><code>&gt; sessionInfo()
  R version 2.15.3 (2013-03-01)
  Platform: i386-w64-mingw32/i386 (32-bit)
  </code></pre>