[R] annotating time axis by axis.POSIXct
Petr PIKAL
petr.pikal at precheza.cz
Thu Nov 5 10:28:04 CET 2009
Dear all
I try to format labels on axis as standard ones does not look well, but I
am not able to make axis.POSIXct to work. here is an example
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
> version
_
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
More information about the R-help
mailing list