Re: [R] x-axis with month and year

2008-08-15 Thread Gabor Grothendieck
nal Message- > From: Gabor Grothendieck [mailto:[EMAIL PROTECTED] > Sent: Friday, August 15, 2008 2:06 PM > To: Schreiber, Stefan > Cc: r-help@r-project.org > Subject: Re: [R] x-axis with month and year > > Check out the zoo package: > > Lines <- "Date,CMI >

Re: [R] x-axis with month and year

2008-08-15 Thread Schreiber, Stefan
To: Schreiber, Stefan Cc: r-help@r-project.org Subject: Re: [R] x-axis with month and year Check out the zoo package: Lines <- "Date,CMI Jan-93,3.24 Feb-93,-2.56 Dec-06, 8.25" library(zoo) z <- read.zoo(textConnection(Lines), FUN = as.yearmon, format = "%b-%y", sep

Re: [R] x-axis with month and year

2008-08-15 Thread Gabor Grothendieck
Check out the zoo package: Lines <- "Date,CMI Jan-93,3.24 Feb-93,-2.56 Dec-06, 8.25" library(zoo) z <- read.zoo(textConnection(Lines), FUN = as.yearmon, format = "%b-%y", sep = ",", header = TRUE) plot(z) On Fri, Aug 15, 2008 at 1:12 PM, Schreiber, Stefan <[EMAIL PROTECTED]> wrote: > Hey li

Re: [R] x-axis with month and year

2008-08-15 Thread Ben Bolker
Schreiber, Stefan ales.ualberta.ca> writes: > > Hey list! > > I have a csv-file with two variables: (Date,CMI) > > Date,CMI > Jan-93,3.24 > Feb-93,-2.56 > . > . > . > Dec-06, 8.25 > > When I want to plot this dataset, R is sorting the date in alphabetical > order. Is there any way to te

[R] x-axis with month and year

2008-08-15 Thread Schreiber, Stefan
Hey list! I have a csv-file with two variables: (Date,CMI) Date,CMI Jan-93,3.24 Feb-93,-2.56 . . . Dec-06, 8.25 When I want to plot this dataset, R is sorting the date in alphabetical order. Is there any way to tell R not to do it? I know it is probably an easy issue but I couldn't find a solu