From: RINNER Heinrich <HEINRICH.RINNER_at_tirol.gv.at>

Date: Wed, 14 May 2008 09:47:10 +0200

xyplot(y ~ x | a, data = test) # how???

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 Wed 14 May 2008 - 12:16:21 GMT

Date: Wed, 14 May 2008 09:47:10 +0200

[adapted repost of question

http://tolstoy.newcastle.edu.au/R/e4/help/08/03/6260.html]

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:

library(lattice)

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 (possibly loooooooooooooooooooooooooooongstring"),50))

xyplot(y ~ x | a, data = test) # how???

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

[[alternative HTML version deleted]]

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 Wed 14 May 2008 - 12:16:21 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 Wed 14 May 2008 - 15:30:37 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.
*