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(horizontal)

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 appearanceOptions makes it possible to rotate the chart 90 degrees (appearanceOptions = horizontal), to add symbols (appearanceOptions = symbol) and shadow (appearanceOptions = 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

BoxPlot(symbol+shadow+horizontal)

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

AxisLine(all;​0)

10

AxisMajorTicks(all;​0)

11

/* Set up grid. */

12

MajorGridLineWidths(x;​y;​0)

13

MajorGridLineWidths(y;​x;​0.25)

14

CloseDrawing()

BOX_PLOT_01

The 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

AxisLine(all;​0)

9

AxisMajorTicks(all;​0)

10

/* Set up grid. */

11

MajorGridLineWidths(x;​y;​0)

12

MajorGridLineWidths(y;​x;​0.25)

13

CloseDrawing()

BOX_PLOT_02
Scroll to Top
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×