Skip to content
Prev 10826 / 15075 Next

"special" paper option of postscript device not working

On Sep 22, 2014, at 12:15 PM, Denis Chabot <chabot.denis at gmail.com> wrote:

            
Denis,

In general and as noted in the Details section of ?postscript, you will want to create an EPS file, using the following incantation:

  postscript(file = ..., width = ..., height = ..., horizontal = FALSE, 
             paper = "special", onefile = FALSE)

Thus:

postscript(file = "test.eps", width = 5.5, height = 4.25, 
           horizontal = FALSE, paper = "special", onefile = FALSE)
par(mar=c(2.8, 2.8, 1.8, 0.2)+0.1, xpd=F, mgp=c(1.5,0.5,0), cex.lab=1)
plot(1:10)
dev.off()


On my Mac, with OS X 10.9.5, the attached file is generated in the fashion that you would expect.

There is also the ?setEPS function.

Regards,

Marc Schwartz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.eps
Type: image/eps
Size: 4309 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20140922/85521969/attachment.bin>