Skip to content

multiple plots with a title

4 messages · array chip, Peter Alspach, Peter Dalgaard

#
Hi, I am wondering how can I add a common title to the
top of a page that contains multiple plots using,
e.g., par(mfrow=c(2,3))?

thanks

John Zhang
#
John

?mtext

e.g.  mtext('General title', outer=T, line=-1)

HTH

Peter Alspach
The contents of this e-mail are privileged and/or confidential to the named
 recipient and are not to be used by any other person and/or organisation.
 If you have received this e-mail in error, please notify the sender and delete
 all material pertaining to this e-mail.
#
Thanks, yes, it worked. I got another problem. I
generated these plots into a postscript file, now the
title was truncated (only show lower half). I tried
changing region argument in the postscript(), but not
working. any suggestions?

postscript("database.ps",horizontal=T,color.p=T,ps.region=c(50,7.92,594,784))

par(mfrow=c(2,3))
plot(..)
plot(..)
plot(..)
plot(..)
plot(..)
plot(..)
mtext('title', outer=T, line=-1,font=1,cex=1.3)
dev.off()

thanks
--- Peter Alspach <PAlspach at hortresearch.co.nz> wrote:

            
____________________________________________________________________________________
Looking for last minute shopping deals?
#
array chip wrote:
I guess you need to increase the outer margins

par(oma=....)