position Function (For GPL Graphic Elements)

Note: If you are specifying a position for a reference line (form.line), refer to position Function (For GPL Guides) .

Syntax

position(<algebra>)

or

position(<binning function>)

or

position(<statistic function>)

<algebra>. Graph algebra, such as x*y. Refer to Brief Overview of GPL Algebra for an introduction to graph algebra.

<binning function>. A binning function.

<statistic function>. A statistic function.

Description

Specifies the position of the graphic element in the graph. When a statistic function is used in position, the statistic function is calculated on the second crossed variable in a 2-D coordinate system and the third crossed variable in a 3-D coordinate system.

Examples

Figure 1. Example: Scatterplot
ELEMENT: point(position(x*y))
Figure 2. Example: Bar chart of means
ELEMENT: interval(position(summary.mean(x*y)))

Statistic Functions

See GPL Functions .