Message-ID: <9945229.1075841460053.JavaMail.evans@thyme> Date: Wed, 6 Feb 2002 09:22:44 -0800 (PST) From: deepayansarkar@yahoo.com To: r-help@lists.r-project.org Subject: Re: [R] dev.off() prematurely stops xyplot() Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-From: Deepayan Sarkar X-To: 'r-help@lists.R-project.org' X-cc: X-bcc: X-Folder: \ExMerge - Richey, Cooper\Deleted Items X-Origin: RICHEY-C X-FileName: cooper richey 6-26-02.PST Try print(xyplot()) instead of just xyplot() xyplot (and all other such functions) produce a "trellis" object that is by default printed, but that of course doesn't happen inside source unless you explicitly print it. --- "Waichler, Scott R" wrote: > > I have a script containing an xyplot() to print to a postscript > file, followed by dev.off(). When I source the script, the dev.off() > seems to cut off the xyplot() execution before it is finished. > The resulting postscript file has about the right size, but it > appears blank when I try to view it. If I manually execute the > xyplot(), then wait for the return of the R prompt before executing > dev.off(), I have no problems. Can someone help? > > Scott > Scott Waichler, Senior Research Scientist > Hydrology Group/Environmental Technology Division > Battelle Pacific Northwest National Laboratory > (email) scott.waichler@pnl.gov > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > 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@stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ __________________________________________________ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._