Sorry I put there the ref. :
I am using R Version 2.0.1 on a Debian.
Florence.

---------- Forwarded message ----------
From: Florence Combes <fcombes@gmail.com>
Date: Oct 28, 2005 2:48 PM
Subject: multiple graphs in the same ps file ?
To: r-help@stat.math.ethz.ch

Dear all,

I would like to be able to store multiple graphs in one ps or pdf file, but
I cannot achieve this only if I don't shut the "postscript" device between
the graphs.

here is what I managed to do :
> postscript(file="test_graph.eps", onefile=TRUE)
> plot(1:10)
> plot(1:20)
>
> dev.off()
---------------------------------------------------------------------------

but when I try :

> postscript(file="test_graph.eps", onefile=TRUE)
> plot(1:10)
> dev.off
[execution of another part of the code and then:]
> plot(1:20)
> dev.print(postscript, onefile=TRUE)
> dev.off()

I only have one page in my file "test_graph.eps" which only contains the
last graphics.

So I wonder : is it possible to reopen a ps or pdf file and to add data (I
tried the "append=TRUE" option but without success) ?

Thanks a lot

Florence.

	[[alternative HTML version deleted]]


