Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: graphic
See also: grboxcl grdotcl

Quantlet: grhistcl
Description: generates a histogram from classified data.

Usage: hp = grhistcl (cl, fr{, col})
Input:
cl n x 1 vector of interval bounds
fr n x 1 vector of interval frequencies
col (optional) color of the histogram
Output:
hp composed graphical object

Note:

Example:
library("graphic")
; Data about people killed in road accidents in 1998
; Source: Statistisches Jahrbuch 1999, Germany
; Age classes
age  = #(0, 15, 18, 25, 65, 90)
; No. of killed people
kill = #(304, 359, 1724, 4074, 1328)
bp = grhistcl(age, kill, 1)
d = createdisplay(1, 1)
show(d, 1, 1, bp)

Result:
A blue histogram of people killed in road accidents is shown.



Author: S. Klinke, 20020227
(C) MD*TECH Method and Data Technologies, 05.02.2006