Enron email

Algorithmic Indexing

6 Feb 2002, 17:22 UTC

Re: [R] dev.off() prematurely stops xyplot()

From
Deepayan Sarkar deepayansarkar@yahoo.com
To
r-help@lists.r-project.org
Date
Wed, 6 Feb 2002 09:22:44 -0800 (PST)




Try

print(xyplot(<whatever>))

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" <Scott.Waichler@pnl.gov> wrote:
Quoted or forwarded from earlier messages
>
> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._