Skip to content
Prev 123739 / 398498 Next

plotting predicted curves with log scale in lattice

On 9/3/07, Ken Knoblauch <knoblauch at lyon.inserm.fr> wrote:
More like a possibly desirable feature that's missing.
Yes, the documentation is a bit vague. I've changed it to the
following, which is hopefully clearer.

          'log' Controls whether the corresponding variable ('x' or
               'y') will be log transformed before being passed to the
               panel function.  Defaults to 'FALSE', in which case the
               data are not transformed.  Other possible values are any
               number that works as a base for taking logarithm, 'TRUE'
               (which is equivalent to 10), and '"e"' (for the natural
               logarithm).  As a side effect, the corresponding axis is
               labeled differently.  Note that this is a transformation
               of the data, not the axes.  Other than the axis
               labeling, using this feature is no different than
               transforming the data in the formula; e.g.,
               'scales=list(x = list(log = 2))' is equivalent to 'y ~
               log2(x)'.

-Deepayan