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: dispbox plotdot

Quantlet: dispdot
Description: Generates a dotplot with tonal highlighting. An optional factor allows multiple dotplots by group.

Usage: dp = dispdot(x , inColorScheme {, inFactor})
Input:
x n x 1 vector (continuous variable)
inColorScheme m x 3 vector (discrete) of rgb colors for the different highlighting stages
inFactor n x 1 vector (discrete variable)
Output:
dp composed graphical object

Note:

Example:

library("graphic")

library("stats")

x = normal(4000)

m = matrix(1000)

factor = m | 2*m | 3*m | 4*m

bp1 = dispdot(x, grcolorscheme("greyscale"))

bp2 = dispdot(x, grcolorscheme("topographic"), factor)

dd = createdisplay(1, 2)

show(dd, 1, 1, bp1)

show(dd, 1, 2, bp2)

Result:

Shows a dotplot of x on the left. On the right four

dotplots of the four groups within x defined by factor are

shown.


Library: graphic
See also: dispbox plotdot

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