Skip to content

Batch mode problem: figure margins too large (code corrected for word wrap)

3 messages · Lapointe, Pierre, Brian Ripley, Uwe Ligges

#
Thank you, the word wrap did make it impossible.

For me

pdf(file="c:/CFTC.pdf",height=10,width=8,paper="letter")
## plotting
dev.off()

works in interactive mode or from a file.  I don't understand why you are 
going via dev.print(), nor what exactly what is different about your 
invocation of `batch mode', as putting your commands in file test.R and 
doing

R CMD BATCH test.R
R CMD BATCH --internet2 test.R

also work.  So although I have not nailed the problem I hope I have 
provided some workarounds.
On Thu, 12 May 2005, Lapointe, Pierre wrote:

            

  
    
#
I'd like to recommend to open the pdf() device (and to plot in) 
directly. There is no reason to use the windows() device in BATCH mode, 
if you want to produce PDF.
Lapointe, Pierre wrote:
delete windows() and insert:

pdf(file="c:/CFTC.pdf",height=10,width=8,paper="letter")
delete dev.print and insert dev.off()

[BTW: your code is almost unreadable, please try to format it before 
posting, and please read documentation on devices]

Uwe Ligges