Re: [R] abline(v= x) in plot with time formated xaxis not working

2009-07-19 Thread jim holtman
The reason that you need the 'as.POSIXct' is that the 'abline' function does not recognize variables with POSIXlt class. > methods(abline) no methods were found Warning message: In methods(abline) : function 'abline' appears not to be generic > methods(plot) [1] plot.acf* plot.data.fram

Re: [R] abline(v= x) in plot with time formated xaxis not working

2009-07-19 Thread F!!
Sorry for the lack of the plot. It's is just a simple xy plot with xvalues formated as shown in my post (strptime()). Anyway, here a working example: > > rm(list=ls()) > > x<-c(100*1500:1559, 100*1600:1659) > x<-strptime(x, format="%H%M%S") > y<-c(CO2$conc, CO2$conc[1:36]) > > plot(x, y, pc

Re: [R] abline(v= x) in plot with time formated xaxis not working

2009-07-18 Thread Patrick Connolly
Dear Fritz, (had to guess the name as well as most of the other things not given) On Wed, 15-Jul-2009 at 02:25PM -0700, F!! wrote: |> |> Hi, |> |> I try to create a vertical line in my plot, which has a xaxis comprising |> time formated data. |> |> This is what I tried: |> |> ---

Re: [R] abline(v= x) in plot with time formated xaxis not working

2009-07-15 Thread David Winsemius
On Jul 15, 2009, at 5:25 PM, F!! wrote: Hi, I try to create a vertical line in my plot, which has a xaxis comprising time formated data. This is what I tried: y<-152833 x<-strptime(y, format="%H%M%S") abline(v=x, col="red") But, but, but ... where is your plot functi

[R] abline(v= x) in plot with time formated xaxis not working

2009-07-15 Thread F!!
Hi, I try to create a vertical line in my plot, which has a xaxis comprising time formated data. This is what I tried: y<-152833 x<-strptime(y, format="%H%M%S") abline(v=x, col="red") for some reason, it doesn't work and no error msg is displayed... I hope