[R] Problem with date x-axis

PtitBleu ptit_bleu at yahoo.fr
Fri Dec 4 16:59:51 CET 2009


Hello,

I have a "friday" problem.
I'm trying to plot the number of measures by day with this command between
the 2008-07-31 and the 2009-11-13 (it works) :
plot(unique(as.Date(strptime(data$date, format="%Y-%m-%d %H:%M:%S))),
measuresbyday)
then I would like to plot vertical lines for each month. 
But it doesn't work because
par()$usr gives
14071.16  14579.84  -7.16  213.16
and
as.numeric(as.POSIXct(unique(as.Date(strptime(data$date, format="%Y-%m-%d
%H:%M:%S)))[1])) corresponding to "2008-08-01" gives
1217376000

I think the last value is ok but I don't understand why the par()$usr values
are so low.

Any idea ?

Thanks in advance and have a nice week-end,
Ptit Bleu.





-- 
View this message in context: http://n4.nabble.com/Problem-with-date-x-axis-tp948642p948642.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list