On 26/04/2010 6:05 AM, karine heerah wrote:
hi everybody,
How can you plot some dates? I mean how can i have the tickmarks with the label
of each date on my x axis?
The dates i use are in POSIXct format, i don't know if it matters.
If your x variable is a POSIXct variable, it will happen automatically.
If you don't like the tickmark locations or the date format, you can use
axis.POSIXct to change them. For example,
x <- as.POSIXct(c("2010/01/01", "2010/05/01"))
plot(x, 1:2, xaxt="n")
axis.POSIXct(1, x, format="%b%Y")
Duncan Murdoch
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.