Skip to content
Back to formatted view

Raw Message

Message-ID: <644e1f320608251402ie3ee5b0u405aaf35bb39517b@mail.gmail.com>
Date: 2006-08-25T21:02:54Z
From: jim holtman
Subject: tick.number for date in xyplot
In-Reply-To: <1156532042.12112.15.camel@capella.stat.purdue.edu>

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?