Re: [R] Unexpected behavior of windows() command followed by print(LATTICEPLOT)

From: David Winsemius <dwinsemius_at_comcast.net>
Date: Tue, 22 Mar 2011 18:47:02 -0400

On Mar 22, 2011, at 4:14 PM, Dennis Fisher wrote:

> Colleagues
> R: 2.12.2
> Windows 7 (64-bit)
> I am experiencing unexpected behavior in the following situation:
> FILE1:
> windows()
> plot(1, 1,)
> FILE2:
> windows()
> PLOT <- code.to.create.a.lattice.object()
> print(PLOT)
> Sys.sleep(10)
> FILE3:
> PLOT <- code.to.create.a.lattice.object()
> print(PLOT)
> Sys.sleep(10)
>
> When I open an R session and "source()" either FILE1, FILE2, or
> FILE3, an R graphics window open and a graphic appears.
>
> In contrast, I type the following at a command prompt:
> R --slave --no-save < FILE1 this opens the graphics window and
> displays a graphic
> R --slave --no-save < FILE2 no graphics window
> R --slave --no-save < FILE3 no graphics window
>
> I assume that the problem relates to printing options for lattice
> objects. Can someone direct me to how to solve this?

Does this answer, at least to extent of noting that the developers would have expected you to print you graphics output to a file device?

http://finzi.psych.upenn.edu/R/Rhelp02/archive/115574.html

-- 

David Winsemius, MD
West Hartford, CT

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 22 Mar 2011 - 22:52:22 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 22 Mar 2011 - 23:00:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive