title: Perl Statistics::R generates blank plot image (jpeg)
body: <p>I am currently using ActiveState Perl 5.14 and the R project version 2.13.2. Within Perl I am using Statistics::R version 0.08. According to ActiveState the more recent versions of <code>Statistics::R</code> (through 0.24) failed to pass scrutiny and are therefore not available through the PPM.</p>
  
  <p>History: I have been successfully using Perl to access R for some time to perform analysis. Now I want to generate JPEG images of the results of the analysis for easy visualization.</p>
  
  <p>Here's the problem: I can generate the images successfully from within the R console. However, when I run the same commands through Perl I only get a blank image. My console code includes (simplified, of course):</p>
  
  <pre><code>  x&lt;-c(1,2,3,4,5)
    y&lt;-c(5,4,3,2,1)
    jpeg("C:/temp.jpg")
    plot(x,y)
    dev.off()
  </code></pre>
  
  <p>And my Perl commands include (also simplified):<BR></p>
  
  <pre><code>   $R = Statistics::R-&gt;new();
     $R-&gt;start_sharedR
     $R-&gt;send("x&lt;-c(1,2,3,4,5)");
     $R-&gt;send("y&lt;-c(5,4,3,2,1)");
     $R-&gt;send('jpeg("C:/temp.jpg")');
     $R-&gt;send("plot(x,y)");
     $R-&gt;send("dev.off()");
  </code></pre>
  
  <p>Any suggestions? I know that there are other plotting options accessible to Perl. I have eliminated some (GD Graph) because X-axis data is not treated as numeric. I'd prefer to keep it in R if at all possible since I'm already interacting in that package for the analysis. Thanks!</p>