I would like to centre titles for pairs of plots in a 3-x-2
array.  Each row of the array corresponds to a calendar year
and I would like to have the year value centred between the
two plots in the row, and just above their upper edges.

I have attached an example in "demo.pdf" showing roughly
what I want.  I managed to produce the example using

mtext(outer=TRUE,side=3,line=<whatever>,text=YR,font=2)

I got the appropriate (negative) values for "line" by trial-and-error
experimentation. That's pretty kludgy, and the result only works for
the screen graphics device with which I experimented.  If I switch to pdf()
everything is out of whack.  I produced demo.pdf by plotting to the screen
graphics device and then using dev.copy().

Is there a non-kludgy way of accomplishing my objective?

Thanks.

        cheers,

                Rolf Turner

Attachment: demo.pdf
Description: Adobe PDF document

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to