PDA

View Full Version : need latex guru help again


Ruffed Grouse
October 24th, 2009, 12:00 PM
Hi,

I have eps files that I generated in R. I am trying to include it in a manuscript. Everything works fine with all other images (all eps) except one. It gets rotated and squished without me asking for it.

The file in question was generated with the following R code (edit: note the smiley face is something automatic, not a relevant aspect of the code!):

postscript("/home/michael/Desktop/mmPowerPlot.eps",width=8,height=8)
persp(x=testp,y=testa,z=likelihoodRatios,theta=40, phi=25,xlab="Mutant allele frequency",ylab="Allelic substitution effect",zlab="Probability of significant test")
dev.off()

and the relevant bit of latex is:

\begin{figure}
\includegraphics{mmPowerPlot.eps}
\caption{test}
\label{fig:mixture}
\end{figure}

I only have the problem with this one file. It is the only '3D-like' perspective plot of the bunch, though, and I suspect it has something to do with that.

RG

<><

Chronon
October 25th, 2009, 02:57 AM
What's the compilation process? Is the problem in PDF and PS or only in DVI? I have some images that appear broken in DVI (something wrong with previews, I guess), but dvipdf, etc. produce fine results for output.

hubie
October 25th, 2009, 10:21 AM
Just for clarification, are the figures that don't give you a problem also generated with R? If so, could you give an example of the script that generated them?

XCan
October 25th, 2009, 11:01 AM
How does it look if you simply open it with evince? Does it get rotated?