[R] terminating plot

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Fri Feb 4 23:52:37 CET 2000


Denis White <denis at mercury.cor.epa.gov> writes:

> This script (in Version 0.90.1 [Solaris]):
> 
>   postscript (file="test.eps",onefile=F)
>   par (mfrow=c(3,1))
>   plot (1:10,rep(1,10))
>   plot (1:10,rep(1,10))
>   plot (1:10,rep(1,10))
>   frame()
> 
> does not terminate the plot.  Rather it gives the message:
> 
>   Warning message: 
>   multiple pages used in postscript() with onefile=FALSE 
> 
> and the plot is only complete after quitting R.
> 
> Is there some other way to complete a plot?

dev.off() will flush the output buffer and close the file. Don't use
frame() since that tells you to start a new page, and with onefile=F
you cannot have that.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list