xscale.components.log10: Labels 10-logged x axes appropriately in lattice

View source: R/xscale.components.log10.r

xscale.components.log10R Documentation

Labels 10-logged x axes appropriately in lattice

Description

Labels 10-logged x axes appropriately in lattice

Usage

xscale.components.log10(lim, ...)

Arguments

lim

internal required argument.

...

passed to xscale.components.default()

Value

Nothing. It's a function to be called inside a lattice call

Note

Not to be called by user.

See Also

Other scale.components: xscale.components.log10.3(), yscale.components.log10.3(), yscale.components.log10()

Examples

library(lattice)
set.seed(1234)
datf = data.frame(DV = exp(rlnorm(1000, sdlog = 0.5)), TIME = seq(1000))

# labels at one log10 unit intervals
xyplot(DV ~ TIME
       , data = datf
       , scales = list(log = 10)
       , yscale.components = yscale.components.log10
       , xscale.components = xscale.components.log10
)

# labels at half log10 unit intervals
xyplot(DV ~ TIME
       , data = datf
       , scales = list(log = 10)
       , yscale.components = yscale.components.log10.3
       , xscale.components = xscale.components.log10.3
)

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.