tick.number for date in xyplot
Try this:
xyplot(runif(365)~I(as.Date("1999-01-01") + 1:365),
scales=list(x=list(at=seq(as.Date('1999-1-1'), length=12, by='1
month'), labels=NULL)))
On 8/25/06, Benjamin Tyner <btyner at stat.purdue.edu> wrote:
I would like a tick mark for each month; for example,
xyplot(runif(365)~I(as.Date("1999-01-01") + 1:365),
scales=list(x=list(format="%b %Y",tick.number=12)))
I know I could make x numeric and use 'at' and 'labels', but I was
wondering if there is a more direct route I'm missing. (In particular,
one that doesn't have to be modified for new data).
Thanks,
Ben
______________________________________________ R-help at stat.math.ethz.ch 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.
Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem you are trying to solve?