[R] some EPS rotated in journal preview
Rainer M Krug
rkrug at sun.ac.za
Tue Jul 25 11:46:23 CEST 2006
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 at 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 at sun.ac.za
Rainer at krugs.de
More information about the R-help
mailing list