"John" == John Williams <jwilliams at business.otago.ac.nz> writes:
> Hi there folks I have R 1.3.0 running on Red Hat Linux 7.1
> with GhostView 3.5.8. When I produce a file like:
>> bitmap("foo.pdf", type="pdfwrite")
>> plot(foo)
>> dev.off()
> and then try to read it with gv, I get an unrecoverable
> error and nothing displayed.
That works for me (R 1.3.0-1, Debian testing, gs 5.10-10.1, gv
3.5.8).
On a related note, when using type="pdfwrite", bitmap doesn't
actually produce bit mapped graphics. For vector graphics I
normally use the postscript device, and more recently, the pdf
device, as in
> postscript("foo.ps"); plot(foo); dev.off()
> pdf("foo2.pdf"); plot(foo); dev.off()
I have noticed that bitmap("foo.pdf", type="pdfwrite") produces
different results than pdf("foo2.pdf") does: bitmap(...) uses
ghostscript and makes version 1.2 pdf which pdf(...) doesn't use
ghostscript and makes version 1.1 pdf. The practical consequence
of this seems to be that the v1.2 pdf file is smaller and that