title: R: rCharts and Shiny, charts won't show up when I run it
body: <p>This seems like an ongoing question. I saw this posted a few times, I tried all the different solutions people offered. But nothing works for me.
  My chart won't show up when I run it :(</p>
  
  <p>Here is my ui.R</p>
  
  <pre><code>## ui.R
  require('rCharts')
  require('shiny')
  require("quantmod")
  require("TTR")
  require("stringr")
  require('lubridate')
  options(RCHART_LIB = 'polycharts')
  
  shinyUI(pageWithSidebar(
    headerPanel('test'),
    sidebarPanel(p('test')
    ),
    mainPanel(
      showOutput('graph',lib='polycharts')
    )
  ))
  </code></pre>
  
  <p>and here is my server.R</p>
  
  <pre><code>#Dependencies
  require('rCharts')
  require('shiny')
  require("quantmod")
  require("TTR")
  require("stringr")
  require('lubridate')
  
  #functions
  SYM&lt;-function (x,loc='yahoo') {
    getSymbols(x,src=loc)
    return(get(x))}
  
  data.setup&lt;-function(data,loc='yahoo',start.date=Sys.Date()-months(1),
                       end.date=Sys.Date()) {
    getSymbols(data,src=loc)
    x&lt;-as.data.frame(window(SYM(data,loc=loc),
                            start=as.character(start.date),
                            end=as.character(end.date)))
    x$dates&lt;-row.names(x)
    return(return(x)) 
  }
  
  ## server.r
  shinyServer(function(input, output) {
    output$graph &lt;- renderChart2({
      a&lt;-data.setup('AAPL')  
      m1 &lt;- mPlot(x = 'dates', y = c("AAPL.High", "AAPL.Low"), type = "Line", data = a)
      m1$set(dom = 'graph')
      return(m1)
    })
  })
  </code></pre>
  
  <p>*My main issue is that I can't understand how does the showOutput function works.
  What is the lib in showOutput referring to? I can't find any guide that explains that.
  I am still a newbie when it comes to environments in R. A answer aimed at that is greatly appreciated!</p>