Library: | graphic |
See also: | grdot grdotcl grboxcl grhistcl plotdotcl dispdotcl2 grdotdcl grdotdlcl |
Quantlet: | grdotcl2 | |
Description: | generates a dotplot for classified data. |
Usage: | dp = grdotcl2(gr,fr{,col}) | |
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 | |
col | (optional) scalar, color of the dotplot | |
Output: | ||
dp | composed graphical object |
2) In comparison to grdotcl the data are not spread in their intervals - practical use for contingency tables.
library("graphic") randomize(666) ; make 15 random intervals gr = sort(normal(5)|5+normal(5)|10+normal(5)) fr = ceil(20*uniform(14)) dp = grdotcl2(gr,fr,1) d = createdisplay(1,1) show(d, 1, 1, dp)
shows a blue dotplot