[R] postscript cuts off left margin

Eileen Meyer meyer at rice.edu
Mon Mar 7 23:53:53 CET 2011


I am using the following commands:


postscript(file="test.eps",paper="special",width=6,height=6,horizontal=FALSE)

# fake data
x <- c(12,13,14)
y <- c(41,42,43)

plot(x,y,type="n",xlab=expression(paste("log ",nu[peak]," 
[Hz]",sep="")),ylab=expression(paste("log ",L[peak]," [",ergs," 
",s^-1,"]",sep="")),ylim=c(41,48),yaxt="n",xaxt="n",xlim=c(12,18),cex.lab=1.3)
axis(2,at=c(41,42,43,44,45,46,47,48),labels=expression(41,42,43,44,45,46,47,48),las=1,cex.axis=1.3)
axis(1,at=c(12,13,14,15,16,17),labels=expression(12,13,14,15,16,17),cex.axis=1.3)
dev.off()

The generated output cuts off the left-hand margin. Unfortunately you 
cannot fix this after the fact with bounding box as it is already set at 
llx = 0.
I have looked through the help for postscript output in R, but I don't 
see anything which allows me to set the margins.  The page size (6x6) is 
chosen because it yields a figure which has nice proportions for my paper.

Any help appreciated.

Eileen



-- 
Eileen Meyer

Physics&   Astronomy MS-108
Rice University
6100 Main St. Houston, TX 77005
www.interfolio.com/portfolio/eileenmeyer



More information about the R-help mailing list