Hi, I'm plotting 5 autocorrelation plots on one page. Using par(mfrow=c(3,2)) everything comes out fine. However, for each plot, it prints a title on top of each plot that says Series followed by the variable name used in the plot. I want to suppress those titles, but I also want a general figure title on the bottom of the page. I've looked at the Murrell book as well as the acf documentation and can't seem to figure that out. Any suggestions? Thanks in advance, David -- ======================================================================David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room 1061 1025 W. Johnson Street Madison, WI 53706 email: dkaplan at education.wisc.edu Web: http://www.education.wisc.edu/edpsych/facstaff/kaplan/kaplan.htm Phone: 608-262-0836 Fax: 608-262-0843
Try this: par(mfrow = 1:2) acf(cbind(" " = 1:10)) acf(cbind(" " = 1:10)) par(mfrow=c(1,1)) par(mfrow=c(1,1), oma=c(0,0,1,0)) mtext("My Title", 3, outer = TRUE, cex = par("cex.main")) Please provide reproducible code next time as requested in last line of every message to r-help. On Nov 11, 2007 10:32 PM, David Kaplan <dkaplan at education.wisc.edu> wrote:> Hi, > > I'm plotting 5 autocorrelation plots on one page. Using > par(mfrow=c(3,2)) everything comes out fine. However, for > each plot, it prints a title on top of each plot that says > Series followed by the variable name used in the plot. I > want to suppress those titles, but I also want a general > figure title on the bottom of the page. I've looked at the > Murrell book as well as the acf documentation and can't seem > to figure that out. Any suggestions? > > Thanks in advance, > > David > > > -- > ======================================================================> David Kaplan, Ph.D. > Professor > Department of Educational Psychology > University of Wisconsin - Madison > Educational Sciences, Room 1061 > 1025 W. Johnson Street > Madison, WI 53706 > > email: dkaplan at education.wisc.edu > Web: > http://www.education.wisc.edu/edpsych/facstaff/kaplan/kaplan.htm > Phone: 608-262-0836 > Fax: 608-262-0843 > > ______________________________________________ > 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. >
On Sun, 2007-11-11 at 21:32 -0600, David Kaplan wrote:> Hi, > > I'm plotting 5 autocorrelation plots on one page. Using > par(mfrow=c(3,2)) everything comes out fine. However, for > each plot, it prints a title on top of each plot that says > Series followed by the variable name used in the plot. I > want to suppress those titles, but I also want a general > figure title on the bottom of the page. I've looked at the > Murrell book as well as the acf documentation and can't seem > to figure that out. Any suggestions? > > Thanks in advance, > > DavidDavid, I thinks this script solve your problem a<-1:10 b<-0:10 par(mfrow = c(1,5)) acf(a,main="",xlab="",ylab="") acf(b,main="",xlab="",ylab="") acf(a,main="",xlab="",ylab="") acf(b,main="",xlab="",ylab="") acf(a,main="",xlab="",ylab="") par(mfrow=c(1,1), oma=c(2,2,2,0)) mtext(" Your Title", 3, outer = T) mtext("lag", 1, outer = T, cex =.8) mtext("ACF", 2, outer = T) -- Bernardo Rangel Tura, M.D,Ph.D National Institute of Cardiology Brazil