hist.POSIXt {base} | R Documentation |
Method for hist
applied to date-time objects.
## S3 method for class 'POSIXt'
hist(x, breaks, ..., plot = TRUE, freq = FALSE,
start.on.monday = TRUE, format)
x |
an object inheriting from class |
breaks |
a vector of cut points or number giving the number of
intervals which |
... |
graphical parameters. |
plot |
logical. If |
freq |
logical; if |
start.on.monday |
logical. If |
format |
for the x-axis labels. See |
An object of class "histogram"
: see hist
.
seq.POSIXt
, axis.POSIXct
, hist
hist(.leap.seconds, "years", freq = TRUE)
hist(.leap.seconds,
seq(ISOdate(1970, 1, 10), ISOdate(2002, 1, 1), "5 years"))
## 100 random dates in a 10-week period
random.dates <- ISOdate(2001, 1, 1) + 70*86400*runif(100)
hist(random.dates, "weeks", format = "%d %b")