title: Difficulty reproducing stacked bar graph in R using dygraphs
body: <p>I’ve been using the dygraphs R package to produce some wonderful timeseries plots, but am having great difficulty reproducing the examples located here:
  <a href="http://rstudio.github.io/dygraphs/gallery-custom-plotters.html" rel="noreferrer">http://rstudio.github.io/dygraphs/gallery-custom-plotters.html</a></p>
  
  <p>I’m particularly interested in creating a stacked bar chart:
  <a href="https://i.stack.imgur.com/Y1pxi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Y1pxi.png" alt="Desired stacked bar chart"></a></p>
  
  <p>My data is an xts/zoo object and plots nicely using the standard <code>dygraph</code> function:
  <a href="https://i.stack.imgur.com/DXt2U.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DXt2U.png" alt="sample plot"></a></p>
  
  <p>However, I am unsure where the <code>dyStackedBarGroup</code> function comes from. It appears these functions must be created, and point to the specific plotters in .js files. </p>
  
  <p>I can see for the first example, how <code>dyBarChart</code> is created, but there is no stackedbarchar.js/stackedbargroup.js in my local dygraph installation (however I can see the file in <a href="https://github.com/rstudio/dygraphs/tree/master/inst/plotters" rel="noreferrer">https://github.com/rstudio/dygraphs/tree/master/inst/plotters</a>). </p>
  
  <p>I’ve attempted to source all the functions and .js files from the github page which do not appear to be made available when loading the dygraphs package locally, but I remain unsuccessful.</p>
  
  <p>Am I doing something completely wrong?</p>