Library: | graphic |
See also: | grdot grdotcl2 grboxcl grhistcl plotdotcl dispdotcl2 grdotcl grdotdl grdotd |
Quantlet: | grdotdcl | |
Description: | generates a dotplot for classified data as a density plot. |
Usage: | dp = grdotdcl(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) The data are uniformly spread inside their intervals and are plotted. Compare to grdotcl2.
library("graphic") randomize(666) ; make 15 random intervals gr = sort(normal(5)|5+normal(5)|10+normal(5)) fr = ceil(20*uniform(14)) dp = grdotdcl(gr,fr,2) d = createdisplay(1,1) show(d, 1, 1, dp)
shows a green dotplot as a density plot