Dear List, In R we can plot multiple graphs in same page using par(mfrow = c(*,*)). In each plot we can set title using main and sub commands. However, is there any way that we can place an universal title above the set of plots placed in the same page (not individual plot titles, all i need is a title of the whole graph page) as well as sib-titles? Do I need any package to do so? Thank you for your time. Mohammad Ehsanul Karim (R - 2.3.1 on windows) Institute of Statistical Research and Training University of Dhaka
Mohammad Ehsanul Karim wrote:> Dear List, > > In R we can plot multiple graphs in same page using > par(mfrow = c(*,*)). In each plot we can set title > using main and sub commands. > > However, is there any way that we can place an > universal title above the set of plots placed in the > same page (not individual plot titles, all i need is a > title of the whole graph page) as well as sib-titles? > Do I need any package to do so? > > Thank you for your time.This is covered in a number of places in the archives and RSiteSearch("Overall Title") points you to relevant posts. I'm not sure there is an example of having both a title and subtitle, but that is easy enough: par(mfrow=c(1,2), oma=c(2,0,2,0)) plot(1:10) plot(1:10) title("Centered Overall Title", outer=TRUE) mtext(side=1, "Centered Subtitle", outer=TRUE) You might consider upgrading to a more recent version of R.> Mohammad Ehsanul Karim (R - 2.3.1 on windows) > Institute of Statistical Research and Training > University of Dhaka > ______________________________________________ > R-help at stat.math.ethz.ch 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.-- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894
Here is a way of putting a title in the outer margin: par(mfrow=c(2,2), oma=c(0,0,3,0)) # leave space in outer margin plot(1) plot(2) plot(3) plot(4) mtext('Outer Title', adj=0.5, side=3, outer=TRUE) On 5/3/07, Mohammad Ehsanul Karim <wildscop at yahoo.com> wrote:> Dear List, > > In R we can plot multiple graphs in same page using > par(mfrow = c(*,*)). In each plot we can set title > using main and sub commands. > > However, is there any way that we can place an > universal title above the set of plots placed in the > same page (not individual plot titles, all i need is a > title of the whole graph page) as well as sib-titles? > Do I need any package to do so? > > Thank you for your time. > > Mohammad Ehsanul Karim (R - 2.3.1 on windows) > Institute of Statistical Research and Training > University of Dhaka > > ______________________________________________ > R-help at stat.math.ethz.ch 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. >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem you are trying to solve?