Michael A. Miller
2001-Jul-11 18:19 UTC
[R] Should gv be able to read bitmap(... type= "pdfwrite") ?
>>>>> "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() and > 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 the v1.2 pdf file has text labels that are more similar to what I see on my screen (but still somewhat larger than on screen, the v1.1 text is much larger). The postscript device produces files that have text that looks very close to what I see on screen. Mike -- Michael A. Miller mmiller3 at iupui.edu Krannert Institute of Cardiology, IU School of Medicine Indiana Center for Vascular Biology and Medicine -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
John Williams
2001-Jul-12 04:24 UTC
[R] Should gv be able to read bitmap(... type= "pdfwrite") ?
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. Any help as to whether this ***should*** work would be appreciated. cheers, John -- John Williams Department of Marketing Otago University Dunedin, New Zealand -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._