[R-SIG-Mac] Saving graphs from x11

Don MacQueen dmacq at ucscalumni.com
Mon Sep 15 21:56:43 MEST 2003


One possible explanation is that the program contains a call to 
x11(). Does a new x11 display window open up each time you run the 
program? I'd be willing to look at the program for you (hopefully it 
isn't too long).

-Don

At 11:34 PM -0400 9/15/03, Sammy Banawan wrote:
>Thanks. It doesn't seem to work, though. Output is still being sent 
>to the display instead of to the file. The file is being created, 
>but there's nothing in it. I'm having the same problem when using 
>RAqua (since it seems to use the x11 display for graphical output). 
>Would you mind looking at the program to see if there's something 
>else you can see? I'll attach it in an email if you would like. 
>Thanks for your help
>
>-Sammy
>
>On Monday, September 15, 2003, at 11:21  PM, Thomas Lumley wrote:
>
>>On Mon, 15 Sep 2003, Sammy Banawan wrote:
>>
>>>I'm running R through xemacs. I'm wanting to save my output graphs.
>>>I've found several things that talk about saving the output, but I'm
>>>using a pre-written taxometrics program that generates the code for me.
>>>Is there a way I can get the graphical output saved?
>>
>>You should be able to do
>>
>>pdf("outputgraphs.pdf")
>>..run your program..
>>dev.off()
>>
>>This will send all graphics output to the pdf file rather than to the
>>screen.
>>
>>	-thomas
>>
>
>_______________________________________________
>R-SIG-Mac mailing list
>R-SIG-Mac at stat.math.ethz.ch
>https://www.stat.math.ethz.ch/mailman/listinfo/r-sig-mac


-- 
-------------------------
Don MacQueen
dmacq at ucscalumni.com
California, USA



More information about the R-SIG-Mac mailing list