title: quantmod::chartSeries does not plot all components
body: <p>I have read quite a lot of R docs, but I can't find anything I recognized as the answer to this. My forehead is sore from banging it against the desk. ;)</p>
  
  <p>This is specific to <code>library(quantmod)</code>, because that is what I am trying to learn, but I suppose it is a general question too.</p>
  
  <p>R 2.12.2 GUI 1.36 Leopard build 64-bit (5691)
  Mac OS X 10.6.6</p>
  
  <p>I am trying to replicate the behaviour of a <code>quantmod</code> example at <a href="http://www.quantmod.com/examples/intro/" rel="nofollow">http://www.quantmod.com/examples/intro/</a></p>
  
  <p>From the GUI, all is well - the below generates a chart like this <a href="http://www.quantmod.com/examples/intro/AAPL-full.png" rel="nofollow">http://www.quantmod.com/examples/intro/AAPL-full.png</a>:</p>
  
  <pre><code>&gt; require(TTR)
  &gt; getSymbols("AAPL")
  [1] "AAPL"
  &gt; chartSeries(AAPL)
  &gt; addMACD()
  &gt; addBBands()
  </code></pre>
  
  <p>But when I <code>source()</code> a .R file from the GUI, I only get the chart for</p>
  
  <pre><code>&gt; chartSeries(AAPL)
  </code></pre>
  
  <p>That is, only a price chart and a volume chart underneath it. Further, if I try the following from the command line it kind of works as expected.</p>
  
  <pre><code>$ R --no-save `&lt;`quantmod.R
  </code></pre>
  
  <p>A file called <code>Rplots.pdf</code> is generated, which contains three pages. The third page contains the price + volume + MACD + Bollinger Bands. </p>
  
  <p>What is <code>quantmod</code> doing to make life so difficult? Or what do I not understand that is blindingly obvious and is making life so difficult?</p>
  
  <p>What do I have to do to get the sourced script to be able to use the <code>addMACD()</code> and <code>addBBands()</code> functions to the chart?</p>
  
  <p>As a side question, where are the data generated by <code>addMACD()</code> and <code>addBBands()</code> stored?</p>