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: plotdot plotdotcl2 plotboxcl plothistcl dispdotcl grdotcl

Quantlet: plotdotcl
Description: high level routine for dotplots of classified data.

Usage: plotdotcl(gr,fr,inColorScheme{,inLabels})
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
inColorScheme k x 3 vector (discrete) of rgb colors for the different highlighting stages
inLabels n x 1 vector of labels for each column

Note:

Example:
library("plot")
randomize(666)
; make four columns each with 15 random intervals
gr = sort(normal(5,4)|5+normal(5,4)|10+normal(5,4),0)
gr[,3] = 10 + gr[,3]
fr = ceil(30*uniform(14)~20*uniform(14,2)~2*uniform(14))
; you can use sum(fr)in order to see if the labels are all right
labels = "252 obs."|"132 obs."|"140 obs."|"22 obs."
plotdotcl(gr,fr, grcolorscheme("topographic"), labels)

Result:
Four highlighted dotplots with labels in one display.



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