Skip to content
Prev 172445 / 398502 Next

par and a substitute for mtext to write one time a title per page

Hmm,

Reading some responses in the archives on mfg, the first one was simple 
the mfg does not control the pages.
After removing mfg=c(2,1), and leaving in the program only mfrow=(4,1) 
although I am printing one after the other in a loop, pages are printed 
and do not overwrite the same page.

So by defining mfrow only, one can extend to many pages with no problem.

Q2. Here is a small test program:
x<-rnorm(1000)
y<-rnorm(1000)
par(mfrow=c(2,1))
plot(x,y)
mtext("This is my title",3,line=1)
mtext("This is my title",3,line=2)
mtext("This is my title",3,line=3)
plot(x,y)

Is there a function that can print a title in every one new page outside 
of the space designated for graphs, instead of me finding the first 
graph that starts the page and there using mtext as shown above?

Thanks,

Aldi
Aldi Kraja wrote:
--