Message-ID: <4CC5C4BD.6090204@gmail.com>
Date: 2010-10-25T17:56:13Z
From: Immanuel
Subject: Quantmod / xts problem " Error in `[.xts`(x, xsubset) : subscript out of bounds"
In-Reply-To: <1287907375418-3009005.post@n4.nabble.com>
Hello all,
I got some problems while plotting OHLC intraday data
using chartSeries(), ploting of chartSeries(Cl(..) ) works through.
Who knows whats going on?
best regards,
Immanuel
-------------------
> class(intradayData)
[1] "xts" "zoo"
> intradayData[1:5]
Open Close High Low Volume X
2010-05-10 10:00:00 5854.5 5911.0 5925.0 5850.0 2066 NA
2010-05-10 10:10:00 5910.5 5895.0 5911.0 5887.5 1055 NA
2010-05-10 10:20:00 5895.0 5892.0 5901.0 5884.0 913 NA
2010-05-10 10:30:00 5890.0 5903.0 5904.5 5888.5 630 NA
2010-05-10 10:40:00 5903.0 5906.5 5925.0 5901.0 418 NA
> chartSeries(intradayData[1:15])
Error in `[.xts`(x, xsubset) : subscript out of bounds