Dear R experts, I am writing a multi-page PDF file and would like to put a header on each page. Is there a way to test a graphic device to see if a new page is started (so that I know when to write the header)? I could simply count the plots made (each page has the same number of plots), but wanted to see if a more general solution is available. Thank you, Aleksey -- Aleksey Naumov GIS Analyst Center for Health and Social Research Buffalo State College
Hi Aleksey Naumov wrote:> Dear R experts, > > I am writing a multi-page PDF file and would like to put a header on each > page. Is there a way to test a graphic device to see if a new page is started > (so that I know when to write the header)?Sorry. Not that I can think of. Paul> I could simply count the plots made (each page has the same number of plots), > but wanted to see if a more general solution is available.-- Dr Paul Murrell Department of Statistics The University of Auckland Private Bag 92019 Auckland New Zealand 64 9 3737599 x85392 paul at stat.auckland.ac.nz http://www.stat.auckland.ac.nz/~paul/
Marc Schwartz <MSchwartz at medanalytics.com> wrote:> On Tue, 2003-11-11 at 16:49, Paul Murrell wrote: > > Hi > > > > > > Aleksey Naumov wrote: > > > Dear R experts, > > > > > > I am writing a multi-page PDF file and would like to put a header on each > > > page. Is there a way to test a graphic device to see if a new page is started > > > (so that I know when to write the header)? > > > > > > Sorry. Not that I can think of. > > > > Paul > > > > > > > I could simply count the plots made (each page has the same number of plots), > > > but wanted to see if a more general solution is available. > > > I was trying to think of a way but could not either. >It's not clear what you want as the "header", but if it is the same on each page, then using mtext("Header", outer=TRUE) (after a suitable par(oma=c(0, 0, 1, 0))), you can just write the header after every plot. Ray