Re: [R] intraday OHLC plot

2008-03-24 Thread Gabor Grothendieck
You need zoo 1.5-0 and you are using 1.4-2. Also note that the DF <- line is not needed (though it doesn't hurt either) and was just there to check your similar statement. On Mon, Mar 24, 2008 at 4:48 AM, Thomas Steiner <[EMAIL PROTECTED]> wrote: > Dear all, > > thank you very much for continuing

Re: [R] intraday OHLC plot

2008-03-24 Thread Thomas Steiner
Dear all, thank you very much for continuing to look into this issue! I checked the versions and in Gabor's code the spaces and tabs, but still the problem remains (see code and error below). To install quantmod, I used this time Rforge and it did not work. I had to install the "Defaults" package

Re: [R] intraday OHLC plot

2008-03-23 Thread Jeff Ryan
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 t

Re: [R] intraday OHLC plot

2008-03-23 Thread Thomas Steiner
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

Re: [R] intraday OHLC plot

2008-03-22 Thread Gabor Grothendieck
Try this: Lines <- '"Date (GMT)" "Open" "High" "Low" "Last" 17-03-2008 00:00:00 1,5764 1,5766 1,5747 1,5750 17-03-2008 00:05:00 1,5749 1,5750 1,5741 1,5744 17-03-2008 00:10:00 1,5745 1,5762 1,5741 1,5749' DF <- read.delim2(textConnection(Lines)) library(quantmod) z <- re

[R] intraday OHLC plot

2008-03-22 Thread Thomas Steiner
I want to create a open/high/low/last plot of intraday data. I try to use the function plotOHLC from the tsteries package. I create my own multiple time series and then try to plot it. raw Data Format (file eurusd2.csv): "Date (GMT)""Open" "High" "Low" "Last" 17-03-2008 00:00:00 1,5764