hist.grouped.data {actuar}  R Documentation 
This method for the generic function hist
is mainly
useful to plot the histogram of grouped data. If plot = FALSE
,
the resulting object of class "histogram"
is returned for
compatibility with hist.default
, but does not contain
much information not already in x
.
## S3 method for class 'grouped.data' hist(x, freq = NULL, probability = !freq, density = NULL, angle = 45, col = NULL, border = NULL, main = paste("Histogram of" , xname), xlim = range(cj), ylim = NULL, xlab = xname, ylab, axes = TRUE, plot = TRUE, labels = FALSE, ...)
x 
an object of class 
freq 
logical; if 
probability 
an alias for 
density 
the density of shading lines, in lines per inch.
The default value of 
angle 
the slope of shading lines, given as an angle in degrees (counterclockwise). 
col 
a colour to be used to fill the bars.
The default of 
border 
the color of the border around the bars. The default is to use the standard foreground color. 
main, xlab, ylab 
these arguments to 
xlim, ylim 
the range of x and y values with sensible defaults.
Note that 
axes 
logical. If 
plot 
logical. If 
labels 
logical or character. Additionally draw labels on top
of bars, if not 
... 
further graphical parameters passed to

An object of class "histogram"
which is a list with components:
breaks 
the r + 1 group boundaries. 
counts 
r integers; the frequency within each group. 
density 
the relative frequencies within each group
n[j]/n, where n[j] = 
intensities 
same as 
mids 
the r group midpoints. 
xname 
a character string with the actual 
equidist 
logical, indicating if the distances between

The resulting value does not depend on the values of
the arguments freq
(or probability
)
or plot
. This is intentionally different from S.
Klugman, S. A., Panjer, H. H. and Willmot, G. E. (1998), Loss Models, From Data to Decisions, Wiley.
hist
and hist.default
for histograms of
individual data and fancy examples.
data(gdental) hist(gdental)