Skip to content
Prev 76832 / 398502 Next

Leading in line-wrapped Lattice value and panel labels

Hi
Deepayan Sarkar wrote:
> On 9/7/05, Tim Churches <tchur at optushome.com.au> wrote:
>
 >> Version 2.1.1 Platforms: all
 >>
 >> What is the trellis parameter (or is there a trellis parameter) to
 >> set the leading (the gap between lines) when long axis values
 >> labels or panel header labels wrap over more than one line? By
 >> default, there is a huge gap between lines, and much looking and
 >> experimentation has not revealed to me a suitable parameter to
 >> adjust this.
 >>
 >
 >
 > There is none. Whatever grid.text does happens.


grid does have a "lineheight" graphical parameter.  For example,

library(grid)
grid.text("line one\nlinetwo",
           x=rep(1:3/4, each=3),
           y=rep(1:3/4, 3),
           gp=gpar(lineheight=1:9/2))

Could you add this in relevant places in trellis.par Deepayan?

Paul