Library: | graphic |
See also: | grbox grdotcl grhistcl plotboxcl dispboxcl grboxcl grboxmeancl grboxmedian |
Quantlet: | grboxmediancl | |
Description: | generates a boxplot of classified data with the median line. The box borders are the percentiles which are equivalent to the mean plus/minus one standard deviation in the normal case (16% and 84% percentile) and the whiskers are equivalent to the mean plus/minus two standard deviations in the normal case (2.5% and 97.5% percentile). |
Usage: | bp = grboxmediancl(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), color of the boxplot | |
Output: | ||
bp | composed graphical object |
library("graphic") library("stats") randomize(666) ; make 15 random intervals gr = sort(normal(5)|5+normal(5)|10+normal(5),0) fr = ceil(20*uniform(14)) bp = grboxmediancl(gr,fr,2) d = createdisplay(1,1) show(d, 1, 1, bp)
Shows a green "robust" boxplot.