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.


Library: graphic
See also: dispdot plotbox

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

Author: Stephan Lauer 990224
(C) MD*TECH Method and Data Technologies, 21.9.2000