BoxPlot
BoxPlot ( appearanceConst ; upperBoxPercentile ; lowerBoxPercentile ; upperWhiskerPercentile ; lowerWhiskerPercentile )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
appearanceConst | int | 0..127 | default | |
upperBoxPercentile | num | 0..100 | 75 | In % |
lowerBoxPercentile | num | 0..100 | 25 | In % |
upperWhiskerPercentile | num | 0..100 | 90 | In % |
lowerWhiskerPercentile | num | 0..100 | 10 | In % |
Examples
BoxPlot(;80;20;95;5)
Description
Box plots, also referred to as box and whisker plots, are used to represent statistical distributions. The 1st argument appearanceConstants makes it possible to rotate the chart 90 degrees (appearanceConstants = horizontal), to add symbols (appearanceConstants = symbol) and shadow (appearanceConstants = shadow) to the plots. All options can be combined by using a plus sign "+". The borders, symbols and shadows can be varied by using the style functions BorderColorScheme() , BorderStyle() , SymbolColorScheme() , SymbolStyle() and ShadowStyle() .
| BOX_PLOT_01 |
1 | OpenDrawing(250;120) |
2 | ChartData(1 1.5 8 9.9 4.5 7.2 3.3 4 5 3 6) |
3 | |
4 | /* Set up styles. */ |
5 | BorderStyle(1;;0.75;#4682b4) |
6 | SymbolStyle(1;bullet;4;1;#4682b4;shaded) |
7 | ShadowStyle(all;2 2 3) |
8 | /* Set up axes. */ |
9 | |
10 | AxisMajorTicks(all;0) |
11 | /* Set up grid. */ |
12 | MajorGridLineWidths(x;y;0) |
13 | MajorGridLineWidths(y;x;0.25) |
14 |
cThe box limits are defined by the arguments upperBoxPercentile (default: 75 percent) and lowerBoxPercentile (default: 25 percent), the whisker limits are defined by the arguments upperWhiskerPercentile (default: 90 percent) and lowerWhiskerPercentile (default: 10 percent).
| BOX_PLOT_02 |
1 | OpenDrawing(250;120) |
2 | ChartData(1 1.5 8 9.9 4.5 7.2 3.3 4 5 3 6) |
3 | BoxPlot(symbol+horizontal;65;35;95;5) |
4 | /* Set up styles. */ |
5 | BorderStyle(1;;0.5;#333) |
6 | SymbolStyle(1;circle;5;0.5;#333;;white) |
7 | /* Set up axes. */ |
8 | |
9 | AxisMajorTicks(all;0) |
10 | /* Set up grid. */ |
11 | MajorGridLineWidths(x;y;0) |
12 | MajorGridLineWidths(y;x;0.25) |
13 |