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 |
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)
A blue histogram of people killed in road accidents is shown.