[R-SIG-Finance] Quantmod / xts problem " Error in `[.xts`(x, xsubset) : subscript out of bounds"
Jeff Ryan
jeff.a.ryan at gmail.com
Mon Oct 25 20:02:22 CEST 2010
Immanuel,
Not entirely sure what is wrong, but you need to provide reproducible
code for me to do anything more than hazard a guess.
That said, my guess is that something regarding the # of obs you are
plotting or the column ordering is the issue. I have tried to
replicate both, and don't seem to see an error on my end, so I'll wait
for your code that can be run by me that replicates your error.
Best,
Jeff
On Mon, Oct 25, 2010 at 12:56 PM, Immanuel <mane.desk at googlemail.com> wrote:
> 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
>
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions should go.
>
--
Jeffrey Ryan
jeff.a.ryan at gmail.com
More information about the R-SIG-Finance
mailing list