[R] Should gv be able to read bitmap(... type= "pdfwrite") ?

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Jul 11 22:28:10 CEST 2001


mmiller3 at iupui.edu (Michael A. Miller) writes:

> 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.

The latter bit doesn't look like a PDF version issue to me. Rather an
issue of pointsizes relative to display area.

bitmap() defaults "pointsize=" to 1.5 * min(width, height) which at
6in x 6in comes out as 9pt, whereas pdf() uses that from
.PostScript.Options which is generally 12pt, also on 6x6. postscript()
also uses 12pt, but on a bigger page (papersize minus 0.5in for the
margins). x11() also uses 12pt, size 7x7.

Hmm. This might need some sanitizing at some point... 

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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