Hi All, I came across some trouble with this function when trying to plot intraday data. I can't manage to plot candelsticks I get a line instead and I don't understand why. I put below data sample and code.
> head(x) open high low close 2010-10-27 08:59:59 13821 13824 13818 13824 2010-10-27 09:05:00 13823 13830 13823 13830 2010-10-27 09:09:59 13829 13831 13828 13829 2010-10-27 09:15:00 13828 13829 13824 13824 2010-10-27 09:19:59 13825 13826 13817 13817 2010-10-27 09:25:00 13816 13822 13816 13822 2010-10-27 09:30:00 13821 13822 13809 13816 2010-10-27 09:34:59 13816 13816 13811 13815 2010-10-27 09:40:00 13815 13816 13808 13810 2010-10-27 09:44:59 13810 13812 13804 13811 The below code gives me a line chart instead of candlestick. I can't figure out why??? chartSeries(x, TA = NULL, theme = chartTheme('black'), up.col = 'white', dn.col = 'tomato', type = "candlesticks", name = "EUR", minor.ticks=FALSE) the x object seems to have the right attributes (see below) > class(x) [1] "xts" "zoo" > head(index(x)) [1] "2010-10-27 08:59:59 CEST" "2010-10-27 09:05:00 CEST" "2010-10-27 09:09:59 CEST" "2010-10-27 09:15:00 CEST" [5] "2010-10-27 09:19:59 CEST" "2010-10-27 09:25:00 CEST" "2010-10-27 09:30:00 CEST" "2010-10-27 09:34:59 CEST" [9] "2010-10-27 09:40:00 CEST" "2010-10-27 09:44:59 CEST" Did I miss something obvious? Any help appreciated Thanks -- View this message in context: http://r.789695.n4.nabble.com/problem-with-chartSeries-tp3041637p3041637.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.