Re: [R] some EPS rotated in journal preview

From: Rainer M Krug <rkrug_at_sun.ac.za>
Date: Tue 25 Jul 2006 - 19:46:23 EST

This is a very late rply to this topic, but I had a similar problem and I got different results with using ps.options() then using postscript(...) and the one with ps.options produced the results expected. The problem were the size of the graph and the paper and the rotation.

If you want to know details, I have to dig them out.

Rainer

Knut Krueger wrote:
>
> Prof. Brian Ripley schrieb:
> CoverLetter.pdf

>> The problem is a well-known one in viewers looking at whole pages,
>> especially PS -> PDF converters.  R figures are particularly 
>> vulnerable as they have text running both horizontally and vertically 
>> (with normal axes).
>>
>> Please do follow exactly the advice on the postscript help page.
>>
>>      The postscript produced for a single R plot is EPS (_Encapsulated
>>      PostScript_) compatible, and can be included into other documents,
>>      e.g., into LaTeX, using '\includegraphics{<filename>}'.  For use
>>      in this way you will probably want to set 'horizontal = FALSE,
>>      onefile = FALSE, paper = "special"'.
>>
>> If you have done that, suggest to your publisher that they turn auto 
>> rotation off. 

>
>
>
> There are the reproducible codes (from the help file). The first one
> with the long text is rotated the second is not rotated.
> Seems that they rotate the page, if the text of the y-axes is longer
> than the text of the x-axes.
> Are you able to see any other reason for the rotation.
> I will contact the journal again, if there is no other reason especially
> of the R-code.
>
> Regards
> Knut Krueger.
>
> postscript("c:/r/test/regline2.eps",horizontal = FALSE,onefile=FALSE,
> paper = "special" ,pointsize=20,
> height=8,width=8,family = "Helvetica", font = "Helvetica")
> data(Davis)
> attach(Davis)
> mod.M<-lm(repwt~weight, subset=sex=="M")
> mod.F<-lm(repwt~weight, subset=sex=="F")
> plot(weight, repwt, pch=c(1,2)[sex],ylab="aaaa bbbb cccc dddd eeee
> ffff",xlab="aaaa bbbb")
>
> reg.line(mod.M)
> reg.line(mod.F, lty=2)
>
> dev.off()
>
> postscript("c:/r/test/regline3.eps",horizontal = FALSE,onefile=FALSE,
> paper = "special" ,pointsize=20,
> height=8,width=8,family = "Helvetica", font = "Helvetica")
> data(Davis)
> attach(Davis)
> mod.M<-lm(repwt~weight, subset=sex=="M")
> mod.F<-lm(repwt~weight, subset=sex=="F")
> plot(weight, repwt, pch=c(1,2)[sex])
>
> reg.line(mod.M)
> reg.line(mod.F, lty=2)
>
> dev.off()
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
-- 
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)

Department of Conservation Ecology and Entomology
University of Stellenbosch
Matieland 7602
South Africa

Tel:		+27 - (0)72 808 2975 (w)
Fax:		+27 - (0)21 808 3304
Cell:		+27 - (0)83 9479 042

email:	RKrug@sun.ac.za
      	Rainer@krugs.de

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue Jul 25 19:51:36 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 25 Jul 2006 - 22:24:08 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.