Skip to content

allowing line wrap for long strip text in xyplot (lattice)

3 messages · Donald Boyd, Deepayan Sarkar

#
On Mon, Aug 24, 2009 at 8:04 PM, Donald Boyd<boydd at hughes.net> wrote:
Lattice has no facilities for automatic wrapping. However,

1. see ?strwrap to get your strings broken, and ?paste to join them with "\n"-s.

2. You will need to manually find a suitable 'width' for the strwrap
call, depending on your device size and layout

3. You will also need to use lines= in par.strip.text, but you should
be able to figure out the appropriate value from the results of
strwrap.

-Deepayan