Mark Kimpel
2008-Aug-05 23:05 UTC
[R] creating overall title for plots made with par(mfrow=c(2,2))
I'm making some plots on the same page and would like to include an overall title instead of individual main titles as they are similar and their x and y axis labels are sufficient to distinguish them. Is there a way to assign an overall "main" to this page of plots? Mark -- Mark W. Kimpel MD ** Neuroinformatics ** Dept. of Psychiatry Indiana University School of Medicine 15032 Hunter Court, Westfield, IN 46074 (317) 490-5129 Work, & Mobile & VoiceMail (317) 663-0513 Home (no voice mail please) ****************************************************************** [[alternative HTML version deleted]]
Marc Schwartz
2008-Aug-05 23:27 UTC
[R] creating overall title for plots made with par(mfrow=c(2, 2))
on 08/05/2008 06:05 PM Mark Kimpel wrote:> I'm making some plots on the same page and would like to include an overall > title instead of individual main titles as they are similar and their x and > y axis labels are sufficient to distinguish them. > > Is there a way to assign an overall "main" to this page of plots? > > MarkMark, Hate to do this, but see this post from Prof. Ripley from earlier today: https://stat.ethz.ch/pipermail/r-help/2008-August/169974.html :-) Regards, Marc Schwartz
Arthur Roberts
2008-Aug-06 08:08 UTC
[R] creating overall title for plots made with par(mfrow=c(2, 2))
Dear Mark, I asked a similar question, yesterday. The answer is: par(mfrow=c(1,2),oma=c(0,0,2,0)) plot(x) plot(x) title("My Title", outer=TRUE) You need to set up a margin for the title and set the title to outer. I hope this helps. Best wishes, Art On Aug 5, 2008, at 4:05 PM, Mark Kimpel wrote:> I'm making some plots on the same page and would like to include an > overall > title instead of individual main titles as they are similar and > their x and > y axis labels are sufficient to distinguish them. > > Is there a way to assign an overall "main" to this page of plots? > > Mark > > -- > Mark W. Kimpel MD ** Neuroinformatics ** Dept. of Psychiatry > Indiana University School of Medicine > > 15032 Hunter Court, Westfield, IN 46074 > > (317) 490-5129 Work, & Mobile & VoiceMail > (317) 663-0513 Home (no voice mail please) > > ****************************************************************** > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.