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: dispdot plotbox

Quantlet: dispbox
Description: Generates a standard boxplot. An optional factor allows multiple boxplots by group.

Usage: bp = dispbox(x {, factor})
Input:
x n x 1 vector (continuous variable)
factor n x 1 vector (discrete variable)
Output:
bp composed graphical object

Note:

Example:
library("graphic")
library("stats")
x = normal(4000)
m = matrix(1000)
factor = m | 2*m | 3*m | 4*m
bp1 = dispbox(x)
bp2 = dispbox(x, factor)
dd = createdisplay(1, 2)
show(dd, 1, 1, bp1)
show(dd, 1, 2, bp2)

Result:
Shows a boxplot of x on the left. On the right four
boxplots of the four groups within x defined by factor are
shown.



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