Monthly Returns for XLE in R

• 1 min read

  • R Statistics tags: [] meta: _edit_last: '1' dsq_thread_id: '260757787' author:

    I'm still poking around in R, and leveraging the Quantmod package for fun.  Below I generated a simple bar chart of 6 months of monthly returns for XLE, the oil services ETF.

    Not to shabby, eh?  Now if only I can figure out how to correctly scale the y-axis and add in a few more ETF's into the same chart,with different colors, then I'll be happy. Any reader know how to do this?

    Update: Thanks to readers Shane,  Sergi, and Cidiel, I was able to generate this new plot of XLE and XLF together for the past three months of returns. Thanks guys.

     

-->

Neural Market Trends © email