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: plot
See also: grboxgrouped

Quantlet: plotboxgrouped
Description: Generates a boxplots for grouped data with mean line (dotted) and median line (solid).

Link:
Usage: plotboxgrouped (ug, og, n {, col})
Input:
ug p x 1 sorted vector of lower borders of group
og p x 1 sorted vector of upper borders of group
n p x 1 vector of absolute or relative frequencies of group
col color

Example:
library("plot")
// structure of age of women in west germany 31.12.95
ug1 = #(0, 15, 40, 65)
og1 = #(15, 40, 65, 80)
t1  = #(5326, 11911, 10725, 6735)
// structure of age of women in east germany 31.12.95
ug2 = #(0, 15, 40, 65)
og2 = #(15, 40, 65, 78)
t2  = #(1119, 2384, 2380, 1412)
// generate plots
plotboxgrouped(ug1~ug2, og1~og2, t1~t2)

Result:
shows a boxplot for grouped data



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