[R] Setting breaks for histogram of dates
Loris Bennett
loris.bennett at fu-berlin.de
Thu Jan 28 10:23:46 CET 2010
Hi,
I have a list of dates like this:
date
2009-12-03
2009-12-11
2009-10-07
2010-01-25
2010-01-05
2009-09-09
2010-01-19
2010-01-25
2009-02-05
2010-01-25
2010-01-27
2010-01-27
...
and am creating a histogram like this
t <- read.table("test.dat",header=TRUE)
hist(as.Date(t$date), "years", format = "%d/%m/%y", freq=TRUE)
However, I would rather not label the breaks themselves, but instead
print the date with the format "%Y", between the breaks.
Is there a simple way of doing this?
Regards
Loris
--
Dr. Loris Bennett
ZEDAT Computer Centre
Freie Universität Berlin
Berlin, Germany
More information about the R-help
mailing list