Dear developers,
the tick marks and labels produced by axis.POSIXct look strange for time
horizons of a few hours, see the following example:
plot(seq(as.POSIXct("14:00",format="%H:%M"),as.POSIXct("18:00",format="%H:%M"),length.out=20),1:20)
This (copy&paste error?) is easily fixed, see the attached patch (for
revision 47031).
Best wishes,
Martin
--
Dr. Martin Becker
Statistics and Econometrics
Saarland University
Campus C3 1, Room 206
66123 Saarbruecken
Germany
diff -u --recursive trunk.orig/src/library/graphics/R/datetime.R
trunk/src/library/graphics/R/datetime.R
--- trunk.orig/src/library/graphics/R/datetime.R 2008-07-20
18:18:38.000000000 +0200
+++ trunk/src/library/graphics/R/datetime.R 2008-12-01 17:27:32.000000000
+0100
@@ -29,10 +29,10 @@
sc <- 60
if(missing(format)) format <- "%M:%S"
} else if (d < 1.1*60*60*24) {# hours
- sc <- 60*24
+ sc <- 60*60
if(missing(format)) format <- "%H:%M"
} else if (d < 2*60*60*24) {
- sc <- 60*24
+ sc <- 60*60
if(missing(format)) format <- "%a %H:%M"
} else if (d < 7*60*60*24) {# days of a week
sc <- 60*60*24
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel