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

Deepayan Sarkar
Wed, 06 Feb 2002 17:22:44 -0000

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 at pnl.gov>
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 at 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 at
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 at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._