[R] Centering multi-line strip text in lattice

Mike Lawrence Mike.Lawrence at dal.ca
Wed Mar 11 00:48:51 CET 2009

I'm having trouble centering multi-line strip text in lattice. As the
code below demonstrates bounding box of the text is centered within
the strip, but the first line isn't centered in relation to the longer
second line. The "adj" argument to par.strip.text doesn't seem to do
much. Suggestions?

	,z=rep(c('First Line\nLonger Second Line (1)','First Line\nLonger
Second Line (2)'),each=10)

	,par.strip.text = list(cex = .75, lineheight=1, lines = 2, adj=.5),

Mike Lawrence
Graduate Student
Department of Psychology
Dalhousie University

Looking to arrange a meeting? Check my public calendar:

~ Certainty is folly... I think. ~

More information about the R-help mailing list