Re: [R] scatterplotting stock returns using quantmod and pairs()

2011-12-07 Thread R. Michael Weylandt
The names of the list entries are not the same as the column names of the elements of the list (if that makes any sense)...you need to add them manually after the merge: this works library(quantmod) tickers <- c("SHY","TLT","SPY","IWM","GLD","IEV") getSymbols(tickers) AdjCloseReturns <- do.call(me

[R] scatterplotting stock returns using quantmod and pairs()

2011-12-06 Thread alan lapedes
I want to get data for a set of ticker symbols and compute the daily return of the adjusted close using quantmod, and then scatterplot returns using pairs(). The following gets data for the list of tickers: tickers <- c("SHY","TLT","SPY","IWM","GLD","IEV","ILF","EWJ","EPP","SAF","ASA") AdjClosePr