F Duan
2004-Aug-02 17:48 UTC
[R] How to add a common title (or xlab, ylab) for multi-plots in the same window?
Dear R people, I am using par(mfrow=c()) to plot multi-figures in the same window. And I like to put a common title (and xlab, ylab) for all of plots. I have already left some margin by resetting omi values in par() and hided all (xlab, ylab) for each sub-plot. Could anyone tell me how to do that? Thanks a lot, Frank
Gavin Simpson
2004-Aug-02 17:53 UTC
[R] How to add a common title (or xlab, ylab) for multi-plots in the same window?
F Duan wrote:> Dear R people, > > I am using par(mfrow=c()) to plot multi-figures in the same window. And I like > to put a common title (and xlab, ylab) for all of plots. I have already left > some margin by resetting omi values in par() and hided all (xlab, ylab) for > each sub-plot. Could anyone tell me how to do that? > > Thanks a lot, > > Franksee ?title argument outer is used to place titles in the outer margin. HTH Gavin -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow [F] +44 (0)20 7679 7565 ENSIS Ltd. & ECRC [E] gavin.simpson at ucl.ac.uk UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/ 26 Bedford Way [W] http://www.ucl.ac.uk/~ucfagls/ London. WC1H 0AP. %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Sundar Dorai-Raj
2004-Aug-02 17:53 UTC
[R] How to add a common title (or xlab, ylab) for multi-plots in the same window?
F Duan wrote:> Dear R people, > > I am using par(mfrow=c()) to plot multi-figures in the same window. And I like > to put a common title (and xlab, ylab) for all of plots. I have already left > some margin by resetting omi values in par() and hided all (xlab, ylab) for > each sub-plot. Could anyone tell me how to do that? > > Thanks a lot, > > Frank >?mtext allows this if outer = TRUE. --sundar
Uwe Ligges
2004-Aug-02 17:55 UTC
[R] How to add a common title (or xlab, ylab) for multi-plots in the same window?
F Duan wrote:> Dear R people, > > I am using par(mfrow=c()) to plot multi-figures in the same window. And I like > to put a common title (and xlab, ylab) for all of plots. I have already left > some margin by resetting omi values in par() and hided all (xlab, ylab) for > each sub-plot. Could anyone tell me how to do that?Use title() or mtext() with argument outer=TRUE. Uwe Ligges> Thanks a lot, > > Frank > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
partha_bagchi@hgsi.com
2004-Aug-02 18:07 UTC
[R] How to add a common title (or xlab, ylab) for multi-plots in the same window?
?mtext F Duan <f.duan at yale.edu> Sent by: r-help-bounces at stat.math.ethz.ch 08/02/2004 01:48 PM To: r-help at stat.math.ethz.ch cc: Subject: [R] How to add a common title (or xlab, ylab) for multi-plots in the same window? Dear R people, I am using par(mfrow=c()) to plot multi-figures in the same window. And I like to put a common title (and xlab, ylab) for all of plots. I have already left some margin by resetting omi values in par() and hided all (xlab, ylab) for each sub-plot. Could anyone tell me how to do that? Thanks a lot, Frank ______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html