An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20050515/662777da/attachment.pl
Centered overall title with layout()
2 messages · Lapointe, Pierre, Stephen D. Weigand
2 days later
Dear Pierre,
On May 15, 2005, at 6:36 PM, Lapointe, Pierre wrote:
Hello,
I would like to have a centered overall title for a graphics page
using the
layout() function.
Example, using this function:
z <- layout(matrix(c(1:6), 3,2, byrow = TRUE))
layout.show(6)
I'd like to get this:
Centered Overall Title
--------------------------------
| | |
| | |
| | |
| | |
| | |
--------------------------------
| | |
| | |
| | |
| | |
| | |
--------------------------------
| | |
| | |
| | |
| | |
| | |
--------------------------------
I really want to use layout(), not par(mfrow())
Thanks
Pierre Lapointe
Does mtext give you what you want? E.g.,
par(oma = c(0, 0, 3, 0))
z <- layout(matrix(c(1:6), 3,2, byrow = TRUE))
layout.show(6)
mtext("Centered Overall Title", side = 3, line = 1, outer = TRUE)
Hope this helps,
Stephen