| Library: | graphic |
| See also: | grdot grdotcl2 grboxcl grhistcl plotdotcl dispdotcl2 grdotcl grdotd |
| Quantlet: | grdotdlcl | |
| Description: | generates a dotplot for classified data as a density line. |
| Usage: | dp = grdotdlcl(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, colour of the density line | |
| Output: | ||
| dp | composed graphical object | |
2) The data are uniformly spread inside their intervals and are plotted afterwards. Compare it with grdotcl2.
library("graphic")
library("stats")
randomize(666)
gr = 1:15
fr = ceil(20*uniform(14))
dp = grdotdlcl(gr,fr,1)
d = createdisplay(1,1)
show(d, 1, 1, dp)
shows a blue dotplot as a density line