[R] intraday OHLC plot

Thomas Steiner finbref.2006 at gmail.com
Sun Mar 23 15:49:05 CET 2008


Dear Gabor and Jeff,

thanks for your hint! I tried it out and played around but could not
succeed completely:

> library(quantmod)
> raw=read.table(file="eurusd-id.csv",sep="\t",dec=",",header =T)
> date.d=as.POSIXct(raw$Date..GMT)
> z=zoo(cbind(raw$Open,raw$High,raw$Low,raw$Close),order.by=date.d)
> q <- as.quantmod.OHLC(z, col.names = c("Open", "High", "Low", "Close"))
> barChart(q,show.vol=F, show.grid=F,theme="white",name="EURUSD Intraday data",up.col="black",dn.col="black",xlab="time",ylab="FX")
Fehler in as.graphicsAnnot(labels) : objekt "x.labels" nicht gefunden

So it does not find the object "x.labels"... I just fould in the
pdf-documentation that this should be of type character.

Perhaps you know why it fails,
Thomas



More information about the R-help mailing list