Tim Churches
2005-Sep-07 05:52 UTC
[R] Leading in line-wrapped Lattice value and panel labels
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. Tim C
Deepayan Sarkar
2005-Sep-07 21:12 UTC
[R] Leading in line-wrapped Lattice value and panel labels
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. Deepayan
Paul Murrell
2005-Sep-07 21:19 UTC
[R] 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
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/