[R] Number format in log-scaled lattice xyplots

Deepayan Sarkar deepayan.sarkar at gmail.com
Sun Oct 5 00:53:14 CEST 2008


On 10/4/08, Desany, Brian <brian.desany at roche.com> wrote:
> For a non-log-scaled y-axis, I was able to change the appearance of the
>  y tick labels in an xyplot by using a custom function for
>  yscale.components. However I couldn't get that approach to work for when
>  scales=list(y=list(log=TRUE)).
>
>  What I'm trying to do is make the y-tick labels show up as something
>  like (10, 100, 1000, etc.) rather than the default (10^1.0, 10^2.0,
>  10^3.0, etc.).

Doesn't the first (densityplot) example in ?yscale.components.default
do this? Other relevant examples are

http://lmdvr.r-forge.r-project.org/figures/figures.html?chapter=08;figure=08_04

and

http://lmdvr.r-forge.r-project.org/figures/figures.html?chapter=08;figure=08_05

-Deepayan



More information about the R-help mailing list