[R] problems with plot.data.frame

2006-08-31 Thread Monica Pisica
Hi list, I have a question about 'plot'. I am trying to plot values registered every month - or every other month. If i build a data.frame called mydata like this (as an example) jan 3 1 7 mar 2 4 2 may 1 3 2 jul3 7 4 sep 5 2 3 nov 3 1 5 and use the command lin

Re: [R] problems with plot.data.frame

2006-08-31 Thread Berton Gunter
[EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Monica Pisica > Sent: Thursday, August 31, 2006 9:30 AM > To: r-help@stat.math.ethz.ch > Subject: [R] problems with plot.data.frame > Importance: High > > Hi list, > > I have a question about 'plot'. I

Re: [R] problems with plot.data.frame

2006-08-31 Thread jim holtman
Convert the column with the months to an actual date. I am going to assume this is all the same year, so try this: > x <- read.table('clipboard', as.is=T) > x V1 V2 V3 V4 1 jan 3 1 7 2 mar 2 4 2 3 may 1 3 2 4 jul 3 7 4 5 sep 5 2 3 6 nov 3 1 5 > x$Date <- as.POSIXct(strptime(p

Re: [R] problems with plot.data.frame

2006-08-31 Thread Berton Gunter
at.math.ethz.ch > Subject: [R] problems with plot.data.frame > Importance: High > > Hi list, > > I have a question about 'plot'. I am trying to plot values > registered every > month - or every other month. If i build a data.frame called > mydata like > t

Re: [R] problems with plot.data.frame

2006-08-31 Thread Prof Brian Ripley
On Thu, 31 Aug 2006, Monica Pisica wrote: > Hi list, > > I have a question about 'plot'. I am trying to plot values registered every > month - or every other month. If i build a data.frame called mydata like > this (as an example) > > jan 3 1 7 > mar 2 4 2 > may 1 3 2 > jul3

Re: [R] problems with plot.data.frame

2006-08-31 Thread Monica Pisica
Hi again, OK i came up with this after i got few good sugegstions. First my data.frame actually looks like that (Thanks for clarifications to Prof. Brian Ripley) V1 V2 V3 V4 1 jan 3 1 7 2 mar 2 4 2 3 may 1 3 2 4 jul 3 7 4 5 sep 5 2 3 6 nov 3 1 5 What i want: 1. On x

Re: [R] problems with plot.data.frame

2006-08-31 Thread Gabor Grothendieck
On 8/31/06, Monica Pisica <[EMAIL PROTECTED]> wrote: > Hi again, > > OK i came up with this after i got few good sugegstions. > > First my data.frame actually looks like that (Thanks for clarifications to > Prof. Brian Ripley) > > V1 V2 V3 V4 > 1 jan 3 1 7 > 2 mar 2 4 2 > 3 may 1 3 2 >