s-news
[Top] [All Lists]

Re: multiple graphs in a pdf file

To: Joe Cerniglia <cj5815@yahoo.com>, S-News <s-news@lists.biostat.wustl.edu>
Subject: Re: multiple graphs in a pdf file
From: "Richard M. Heiberger" <rmh@temple.edu>
Date: Mon, 10 Oct 2005 15:58:38 -0400
The problem you are seeing is a consequence of using par(fig=())
in a situation for which it isn't designed.  It has nothing to do
with pdf.

The normal way to put four figures on a page is to use 

par(mfrow=c(2,2))  
to place the graphs by rows
  1   2
  3   4
and then use mtext for the overall title.

Or use par(mfcol=c(2,2))
to place the graphs by columns
1 3
2 4

mfrow and mfcol will make the page change when it is full.


fig is used for finer control and therefore fig does not
force a page change.  With fig you will need to do page changes
manually using frame().

Rich

<Prev in Thread] Current Thread [Next in Thread>