ghist.Date: ghistogram of a date or date-time object

Description Usage Arguments

View source: R/gplots.R

Description

Method for ghist applied to date or date-time objects.

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'Date'
ghist(x, breaks, ..., xlab = deparse(substitute(x)),
  plot = TRUE, freq = FALSE, start.on.monday = TRUE, format,
  grid = TRUE, col.grid = "grey90", col.acc = "white")

## S3 method for class 'POSIXt'
ghist(x, breaks, ..., xlab = deparse(substitute(x)),
  plot = TRUE, freq = FALSE, start.on.monday = TRUE, format,
  grid = TRUE, col.grid = "grey90", col.acc = "white")

Arguments

x

an object inheriting from class "POSIXt" or "Date".

breaks

a vector of cut points or number giving the number of intervals which x is 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.default such as include.lowest, right and labels.

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, the counts component of the result; if FALSE, 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.

grid

logical; if TRUE, a background grid will be drawn

col.grid

grid color

col.acc

grid accent color


raredd/plotr documentation built on Nov. 19, 2018, 11:02 a.m.