From mgd at santafe.edu  Fri Mar 30 22:56:35 2007
From: mgd at santafe.edu (Marcus G. Daniels)
Date: Fri, 30 Mar 2007 14:56:35 -0600
Subject: [Rd] error in lattice formattedTicksAndLabels.Date (PR#9590)
In-Reply-To: <20070329161024.DE9455DE81@slim.kubism.ku.dk>
References: <20070329161024.DE9455DE81@slim.kubism.ku.dk>
Message-ID: <460D7983.4010000@santafe.edu>

Hi Jim,
> x <- rnorm(12)
> t <- seq( as.Date("2006-04-01"),by="month", length=12)
>
> plot(x~t)      # Has labels "May", "Jul", "Sep", "Nov", Jan", "Mar"
> xyplot(x~t)    # Has labels "Jan", "Mar"
How about:

plot(x~t,xaxt="n")
axis(1,at=t,labels=format.Date(t))



[Rd] error in lattice formattedTicksAndLabels.Date (PR#9590)
Marcus G. Daniels