Thanks; this will have to do until a data-independent solution is implemented. I tried things like
seq(min(x),max(x),by='1 month') but I always forget how to make 'x' visible inside a call to xyplot. Ben On Fri, 2006-08-25 at 17:02 -0400, jim holtman wrote: > 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 <[EMAIL PROTECTED]> 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@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. > > > > ______________________________________________ R-help@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.