prob Scale (GPL)

Syntax

prob(dim(<numeric>), <distribution function>, <function>)

or

prob(aesthetic(aesthetic.<aesthetic type>), <distribution function>, <function>)

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

<distribution function>. A distribution function. This is required.

<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 probability scale based on the inverse cumulative distribution function (CDF) for the specified distribution. Data values for this scale must fall in the open interval (0, 1). That is, for any data value x, 0 < x < 1.

Example

Figure 1. Example: Specifying a beta distribution for the probability scale
SCALE: prob(dim(2), beta(2, 5))