Skip to content

Saving graphs from x11

4 messages · Sammy Banawan, Thomas Lumley, Don MacQueen

#
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?

thanks,
-Sammy
#
On Mon, 15 Sep 2003, Sammy Banawan wrote:

            
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
#
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:

            
#
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: