[R] graphical parameters and acf
Bernardo Rangel Tura
tura at centroin.com.br
Mon Nov 12 10:56:33 CET 2007
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,
>
> David
David,
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
More information about the R-help
mailing list