am not able to make axis.POSIXct to work. here is an example
But you are plotting an axis using an object of class "Date", so why use
axis.POSIXct?
Your example works if I do:
axis.Date(1, at=x, format="%m/%Y")
The examples in ?axis.Date show that this does work using axis.POSIXct
if one does have a POSIXct object.
HTH
G
x<-seq(as.Date("2008-1-1"), as.Date("2009-9-6"), by="2 months")
y<-rnorm(11)
plot(x,y) #not very sophisticated axis
plot(x,y, axes=F)
axis(2)
axis.POSIXct(1, at=x, format="%m/%Y") # no axis
The same is on R2.10.0, 2.10.dev and 2.11.dev
R session
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor 10.0
year 2009
month 10
day 26
svn rev 50208
language R
version.string R version 2.10.0 (2009-10-26)
Czech Locale
Is it a bug or am I missing something?
regards
Petr