Displaying 1 result from an estimated 1 matches for "gnewpage".
Did you mean:
newpage
2006 Jan 20
1
par(mfg=) and postscript and pdf
...se on pdf().
You would get the same effect by calling par(new=T) before plot.new() is
called, except that is disallowed. par(mfg=) does set new=T internally,
and also sets the plot number to a valid one, both of which inhibit
calling NewPage. I've managed to overcome this by ensuring that
GNewPage always calls NewPage on an unused device (there is an internal
'state' variable which records the latter).
This is safe in the sense that the worst it could do is to produce an
unwanted new page. I can't see how this could happen but the design of
the internals of base graphics is...