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: grbox grdotcl grhistcl plotboxcl dispboxcl grboxmeancl grboxmediancl

Quantlet: grboxcl
Description: generates a boxplot of classified data with mean line and median line. Outliers outside the interval [Q_25-3*IQR, Q_75+3*IQR] will be plotted as crosses, outliers ouside the interval [Q_25-1.5*IQR, Q_75+1.5*IQR] will be plotted as circles.

Usage: bp = grboxcl(gr, fr{, col})
Input:
gr m x n grid matrix, each column must be ordered ascendently
fr (m-1) x n matrix of frequencies for each interval in each column
col (optional), color of the boxplot
Output:
bp composed graphical object

Note:

Example:
library("graphic")
library("stats")
randomize(666)
; make 15 random intervals
gr = sort(normal(5)|5+normal(5)|10+normal(5),0)
fr = ceil(20*uniform(14))
bp = grboxcl(gr,fr,4)
d  = createdisplay(1,1)
show(d, 1, 1, bp)

Result:
shows a red boxplot



Author: K. Komorad, W. Haerdle, 20010716. license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006