pow Scale (GPL)

Syntax

pow(dim(<numeric>), <function>)

or

pow(aesthetic(aesthetic.<aesthetic type>), <function>)

<numeric>. A numeric value indicating the dimension to which the scale applies. See the topic dim Function (GPL) for more information.

<function>. One or more valid functions. These are optional.

<aesthetic type>. An aesthetic type indicating the aesthetic to which the scale applies. This is an aesthetic created as the result of an aesthetic function (such as size) in the ELEMENT statement.

Description

Creates a power scale. an exponent-transformed scale. The formula for the transformation is power(x, <exponent>), where <exponent> is defined by the exponent function. If an exponent is not explicitly specified, the default is 0.5.

Example

Figure 1. Example: Specifying the scale and an exponent
SCALE: pow(dim(2), exponent(2))