[R] Spacing in the labels using xyplot()

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Oct 10 08:22:05 CEST 2001



Matthew Clarkson wrote:
> 
> We have a variable that we use to label bars in barplot() and to condition
> on in xyplot(). Since the labels can be quite long, we use strwrap()
> on-the-fly to split the strings into several "lines" separated by "\n". With
> barplot, this works nicely using text(), but with xyplot() it doesn't. In
> the latter, the labels appear to be "double-spaced" compared to the
> single-spacing in barplot(). Is it possible to close up the spacing in the
> labels that xyplot() use? I can't see anything obvious in strip.default for
> controlling this, so would greatly appreciate your advice. Thank you!

xyplot() is in package lattice (which is still under development).
Use ltext() instead of text() to put a text into a trellis.device.

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list