title: Plotting with R - skewed eps image & resolution problem
body: <p>I want to create a graphics of a function in R. The code is:</p>
  
  <pre><code> x &lt;- seq(from=0, to=1, by=0.00001)
   f &lt;- function(x) ....
   y &lt;- f(x)
   plot(x, y, xlab="x", ylab="f(x)", pch=16, cex=0.5)
   min(y)
   [1] 0.2291203
   max(y)
   [1] 0.7708797
  </code></pre>
  
  <ol>
  <li><p>When I save the graphics as bmp from RGui, it looks like <a href="http://tinypic.com/view.php?pic=w80npv&amp;s=7" rel="nofollow noreferrer">here</a> and this is fine. When I save it as eps and include in LaTeX with: </p>
  
  <pre><code>\begin{figure}[htbp]
  \centering
      \includegraphics[scale=0.4]{./images/f-probart.eps}
  \end{figure}
  </code></pre>
  
  <p>it is skewed, as shown in the screen capture from <a href="http://tinypic.com/r/v4a49w/7" rel="nofollow noreferrer">here</a>
  What is wrong? I guess there is a problem with exporting from RGui in eps, as the resulted eps is also shown skewed in IrfanView. Hence I suspect that is not the LaTeX inclusion code that is wrong...</p></li>
  <li><p>How could I create this graphics with a requested resolution, say 244 dpi? Is there another package/function that allows me to export eps with a specific resolution?</p></li>
  </ol>
  
  <p>Thanks</p>