log Scale (GPL)
Syntax
log(dim(<numeric>), <function>)
or
log(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 logarithmic-transformed scale. The formula for the transformation
is log<base>(x)
, where <base>
is
defined by the base
function. If a base is not explicitly
specified, the default is base 10. Data values for this scale must
be greater than 0.
Example
SCALE: log(dim(2), base(2))