[R] can't get text to appear over individual panels in multi-panel plot

Jari Oksanen jarioksa at sun3.oulu.fi
Fri Jun 18 15:04:25 CEST 2004

On Fri, 2004-06-18 at 09:28, Jari Oksanen wrote:
> On 18 Jun 2004, at 8:26, Deepayan Sarkar wrote:
> >
> > On Thursday 17 June 2004 22:57, Patrick Bennett wrote:
> >
> >> yes, i can reproduce that same graph when i print to the pdf-device.
> >> but the panel titles do not appear when I print to the Quartz-device.
> >
> > Hmm. I won't be able to help you then, let's hope someone else can.
I had a closer look at this, and it indeed looks like quartz() is anally
checking that there is enough space for text or it refuses to print it
at all. Like I wrote, the command worked with x11() device in MacOS X,
but failed with default quartz(). I checked again (in another machine),
and it seems that you may get text if you expand the par.strip: try


in your Lattice plotting command (lines=1.8 was the smallest that worked
in my case). 

This is a fault (``undesirable feature'') in quartz. This doesn't
concern Lattice only, but all graphics commands: quartz() refuses to
show axis labels or titles in "too narrow" margins, or to write text too
close to axes (if xpd is not set) in quite ordinary plot(). 

cheers, jari oksanen
Jari Oksanen -- Dept Biology, Univ Oulu, 90014 Oulu, Finland
email jari.oksanen at oulu.fi, homepage http://cc.oulu.fi/~jarioksa/

More information about the R-help mailing list