[R] Multiple plot jpeg file

Marc Schwartz marc_schwartz at comcast.net
Tue Jun 19 22:20:29 CEST 2007


On Tue, 2007-06-19 at 21:09 +0100, Prof Brian Ripley wrote:
> On Tue, 19 Jun 2007, Marc Schwartz wrote:
> 
> >
> >
> > On Tue, 2007-06-19 at 15:39 -0400, Bill Hunsicker wrote:
> >> R-Help,
> >>
> >> I am executing a R script and would like to put multiple plots into a
> >> single file. For some reason the contents of plotfile.jpg always seem to
> >> contain the last plot and not all plots.
> >>
> >> If I do same thing with pdf, a multiple plot file is created.
> >>
> >> Can you help me?
> >>
> >> Regards,
> >> Bill
> >
> > There is no notion of a 'page' in bitmapped devices as there is with PDF
> > or PS devices. Thus, each time you call plot(...) with a bitmapped
> > device, the previous output is lost.
> 
> But there is a concept of multiple pages in separate files and that is the 
> default, Rplot001.jpg, Rplot002.jpg and so on.
> 
> The JPEG format only supports one 'page' per file

Quite true.  I thinking of 'pages' in the context of a PDF or PS file,
as Bill had noted above and contrasting that with a bitmapped image of a
defined finite 2D pixel space.

Thanks for clarifying.

Regards,

Marc



More information about the R-help mailing list