Skip to content

no graphics windows

2 messages · Carolyn Fitzsimmons, David Winsemius

#
On Dec 7, 2010, at 9:07 PM, Carolyn Fitzsimmons wrote:

            
Graphics device vary quite a bit between the three major OS-es that  
people are using. On a Mac (using the R-GUI) it is sometimes necessary  
to type quartz() at the command line; Other times it is also necessary  
to type plot.new(). The screen devices are different than the file  
plotting devices.  Quite honestly I am not able to give you a clear  
explanation when plot.new() is needed and when quartz() is more  
appropriate. I suspect that plot.new() does not change the device but  
rather initializes an open device, and that quartz() is generally what  
I should be using when in your situation. If I don't get the action I  
need with one, I try the other and so far I have not gotten into  
trouble.  You could be looking at:

?Devices
?plot.new
?plot.window
?dev.cur


Right now I had no plot window open. I typed quartz() at the command  
line (of the GUI) and a quartz window opens. If I close that window  
and type plot(1,1), a new window opens. with a single point. If I  
close that window and type dev.cur() I get:

null device
           1

I do know that you should remember to always complete a file device  
output session with dev.off() or you end up with a useless file.
David Winsemius, MD
West Hartford, CT