DADiSP Worksheet Functions > Function Categories > Statistics and Calculus > ERRORBAR

 

ERRORBAR

Purpose:

Displays four or five series of data as errorbars.

Syntax:

ERRORBAR(bartop, sticktop, stickbottom, barbottom, midpoint, tees)

bartop

-

A series, or rectangular table of 4 or more columns.

sticktop

-

A series, the maximum values of the stick component.

stickbottom

-

A series, the minimum values of the stick component.

barbottom

-

A series, the minimum values of the bar component.

midpoint

-

Optional. A series, the midpoint values.

tees

-

Optional. An integer, the draw "tee" flag:

0

:

do not draw "tees" (default)

1

:

draw "tees"

Example:

W1: {1, 2, 3, 4, 5, 4, 3, 2, 1, 0}

W2: errorbar(1.1*W1, 1.2*W1, 0.8*W1, 0.9*W1, 1)

 

W1 is a series of 10 observations therefore this example plots ten errorbars, with "tees", background filled.

Remarks:

The ordering of the data series is important. The observations in STICKTOP should all be greater than the corresponding observations in STICKBOTTOM, and so on.

 

The MIDPOINT series determines how the bars will be filled. Each observation of MIDPOINT should range between the corresponding observations in BARTOP and BARBOTTOM. The region of the bar from BARTOP to MIDPOINT is color filled. The region from MIDPOINT to BARBOTTOM is background filled. If MIDPOINT is missing or equal to BARTOP the bar is completely filled. If MIDPOINT is equal to BARBOTTOM, the bar is completely empty.

 

All data series must have the same length.