Library: | graphic |
See also: | dispdot dispdotcl2 dispboxcl plotdotcl grdotcl |
Quantlet: | dispdotcl | |
Description: | generates a dotplot with tonal highlighting of classified data. |
Usage: | dp = dispdotcl(gr, fr, inColorScheme) | |
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 | |
Output: | ||
dp | composed graphical object |
2) Data are uniformly spread inside their intervals and are plotted afterwards. Compare it to dispdotcl2.
library("graphic") 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)) dp1 = dispdotcl(gr[,1],fr[,1], grcolorscheme("greyscale")) dp2 = dispdotcl(gr,fr, grcolorscheme("topographic")) dd = createdisplay(1, 2) show(dd, 1, 1, dp1) show(dd, 1, 2, dp2)
Shows a grayscale dotplot of the first column of the data in the left output window. On the right four highlighted dotplots are shown.