Library: | graphic |
See also: | grdot grdotcl2 grboxcl grhistcl plotdotcl dispdotcl2 grdotcl grdotd grdotdl grdotdlcl |
Quantlet: | grdotdlcl2 | |
Description: | generates a dotplot for classified data as a density line. |
Usage: | dp = grdotdlcl2(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 density line | |
Output: | ||
dp | composed graphical object |
2) In comparison to grdotdlcl the data are not spread in their intervals - practical use for contingency tables.
library("graphic") library("stats") randomize(666) gr = 1:15 fr = ceil(20*uniform(14)) dp = grdotdlcl2(gr,fr,3) d = createdisplay(1,1) show(d, 1, 1, dp)
shows a dotplot as a density line