[R] embedFonts rotates figure

Peter Dalgaard p.dalgaard at biostat.ku.dk
Mon Oct 8 22:37:04 CEST 2007


Paul Smith wrote:
> Dear All,
>
> Consider the following code:
>
> pdf(file="figure.pdf",family="URWPalladio")
>
> curve(dlnorm(x,0,1.5),0,10,xlim=c(0,10),ylim=c(0,0.85),axes=F,xlab="",ylab="f")
> segments(exp(-1.5^2),0,exp(-1.5^2),dlnorm(exp(-1.5^2),0,1.5),lty="dashed")
> segments(1,0,1,dlnorm(1,0,1.5),lty="dashed")
> segments(exp(1.5^2),0,exp(1.5^2),dlnorm(exp(1.5^2),0,1.5),lty="dashed")
> axis(2)
> axis(1,at=c(exp(-1.5^2),1,exp(1.5^2)),labels=c(expression(mu[0]),expression(mu[e]),expression(mu)))
> box()
>
> dev.off()
>
> and now:
>
> embedFonts("figure.pdf")
>
> The figure.pdf gets rotated. Any ideas about how to prevent the
> rotation? I am using R 2.5.1 on F7 (Linux).
>
>   
embedFonts("figure.pdf", options="-dAutoRotatePages=/None")

Or stick the same thing into the environment variable GS_OPTIONS and 
begone with the autorotation misfeature for good. (As far as I remember, 
this is neither the fault of R nor Ghostscript.)

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list