Re: [R] plotting dates in x axis

2017-02-27 Thread Jeff Newmiller
While humorous, the term "Mexican Wall" is unlikely to be clear to the OP. This is a reference to the mailing list anti-virus strategy of cutting out attachments that don't meet a very restrictive set of requirements outlined in the Posting Guide that all R-users are supposed to have read and me

Re: [R] plotting dates in x axis

2017-02-27 Thread Jim Lemon
Hi Maria, First, Excel files don't make it through the Mexican Wall. A CSV with the extension changed to .txt might. You can get all of the years like this: aa<-data.frame(var1=runif(180), SDATE=paste(sample(1998:2012,180,TRUE), sample(1:12,180,TRUE),sample(1:28,180,TRUE),sep="-")) aa$sdate<-as.

[R] plotting dates in x axis

2017-02-27 Thread Maria Lathouri via R-help
Dear all,  I have an excel file of 180 observations with dates and one variable, from 1998 to 2012 by random months (there are some years that I might not have all the months or I might have two observations in one month). I am trying to plot the dates in x axis and the variable in y axis. I hav