hist.POSIXt {graphics}
Description
Method for hist applied to date or date-time objects.
Usage
## S3 method for class 'POSIXt':
hist((x, breaks, ...,
xlab = deparse(substitute(x)),
plot = TRUE, freq = FALSE,
start.on.monday = TRUE, format))
## S3 method for class 'Date':
hist((x, breaks, ...,
xlab = deparse(substitute(x)),
plot = TRUE, freq = FALSE,
start.on.monday = TRUE, format))
Arguments
- x
- an object inheriting from class
"POSIXt"or"Date". - breaks
- a vector of cut points or number giving the number of intervals which
xis to be cut into or an interval specification, one of"days","weeks","months","quarters"or"years", plus"secs","mins","hours"for date-time objects. - ...
- graphical parameters, or arguments to
hist.defaultsuch asinclude.lowest,rightandlabels. - xlab
- a character string giving the label for the x axis, if plotted.
- plot
- logical. If
TRUE(default), a histogram is plotted, otherwise a list of breaks and counts is returned. - freq
- logical; if
TRUE, the histogram graphic is a representation of frequencies, i.e, thecountscomponent of the result; ifFALSE, relative frequencies (probabilities) are plotted. - start.on.monday
- logical. If
breaks = "weeks", should the week start on Mondays or Sundays? - format
- for the x-axis labels. See
strptime.
Details
Note that unlike the default method, breaks is a required argument.
Using breaks = "quarters" will create intervals of 3 calendar months, with the intervals beginning on January 1, April 1, July 1 or October 1, based upon min(x) as appropriate.
Values
An object of class "histogram": see hist.
See Also
seq.POSIXt, axis.POSIXct, hist
Examples
Documentation reproduced from R 2.15.3. License: GPL-2.
