[R] Should gv be able to read bitmap(... type= "pdfwrite") ?
Prof Brian D Ripley
ripley at stats.ox.ac.uk
Mon Jul 16 14:04:15 CEST 2001
On 11 Jul 2001, Michael A. Miller wrote:
> >>>>> "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
(It uses flate compression: pdf uses none. There is a good reason for
that: all including applications can compress the final file, and
compressing the intermediates is only a minor space saving.)
> 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.
(That's related to the defaults for width, height and pointsize. You
can alter any of them to get what you want ....)
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list