intraday OHLC plot
Hi Thomas, The issue is probably the quantmod package being outdated. Try to install this version: http://r-forge.r-project.org/R/?group_id=125 The second issue is that xlab and ylab are no longer being applied - they had some issue, and I haven't settled on a way to address yet. I will make that a priority though. The third issue you *might* see upon updating quantmod is that you may be better off calling chartSeries with the type='bar' argument - as barChart just does this, but due to R lazy evaluation and the TA mechanism/args things may break without a volume in the series. The alternate would be explicitly add TA=NULL to the call. Jeff
On Sun, Mar 23, 2008 at 9:49 AM, Thomas Steiner <finbref.2006 at gmail.com> wrote:
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
There's a way to do it better - find it. Thomas A. Edison