Skip to content
Prev 2734 / 15274 Next

xts and barChart (quantmod)

The issue is with your original dji object.

The first column of you data.frame is forcing the zoo/xts matrix to be
a character one.

Try:

dji2 <- xts( dji[,-1], order.by= as.POSIXct( dji[,1])
colnames(dji2)<-c('Open', 'High', 'Low', 'Close', 'Volume')

The only issue remaining is that your original data.frame may be all
characters, though I assume that is not the case here.

Jeff (with input from Josh)
On Thu, Jul 24, 2008 at 10:20 AM, kafkaz <kafka at centras.lt> wrote: