[R] trellis: left-aligned text in strips?

From: RINNER Heinrich <HEINRICH.RINNER_at_tirol.gv.at>
Date: Tue, 11 Mar 2008 16:56:11 +0100

Dear R community,

by default, text in the strips of a trellis plot is centered in the strip.
Is there a way to have the text left-aligned?

for example:

test <- data.frame(x=rnorm(100), y=rnorm(100), a=rep(c("A: centered text","B: centered text"),50))
xyplot(y ~ x | a, data = test) # ok, strip text is centered test <- data.frame(x=rnorm(100), y=rnorm(100), a=rep(c("A: left-aligned text","B: left-aligned text"),50))
xyplot(y ~ x | a, data = test) # how???

I am using R 2.6.2 on Windows XP, package lattice Version 0.17-6.


R-help_at_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. Received on Tue 11 Mar 2008 - 16:21:59 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 11 Mar 2008 - 17:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive