Hi there, I am having trouble getting the plotting of multiple time series to work.
I have used RBloomberg to download data, which I then convert to a data frame. After I have calculated my new index values, I would like to plot the new index. My problem is that I can't get the plot feature to show the dates properly. The resultant data frame DATA has row.names in the first column, which contains the dates from the RBloomberg download. Could one of the R wizards please point me in the right direction? Thanks in advance Summary of my code: conn <- blpConnect(iface="COM", timeout=12000, show.days="week",na.action="previous.days", periodicity="daily") data <- blpGetData(conn, tickers, "PX_LAST", start = chron("01/01/00"), end = NULL,barsize = NULL, barfields = NULL, retval = NULL) blpDisconnect(conn) DATA <- data.frame(data) . . . A few calculations . . . Strategy <- as.ts(DATA[,5]) Index <- as.ts(DATA[,6]) ts.plot(Strategy,Index,col=c("tomato","black")) -- View this message in context: http://www.nabble.com/Help-with-time-series-tp25990385p25990385.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.