On 1/23/08, Thomas Zumbrunn <[EMAIL PROTECTED]> wrote: > Are there parameters that would allow adjusting y axis labels in lattice > plots? E.g in the following simple example > > require(lattice) > xyplot(rnorm(10) ~ 1:10, scales=list(alternating=2)) > > it would be nice to have the y axis labels adjusted to the right or at the > decimal point instead of left adjustment.
There's nothing that allows that sort of adjustment. You can, however specify the labels ("-0.5", " 0.5" etc.), either explicitly through scales$labels or programmatically through the yaxis.components function (which would presumably use format() or something similar). Of course, this will only work reliably if you use a fixed width font. -Deepayan ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.