title: Using R, how to capture the bitmap of a plot?
body: <p>I'd like to capture the output of the following plot to a variable containing a bitmap, in R:</p>
  
  <pre><code>require(stats)
  plot(sin, -pi, 2*pi) # see ?plot.function
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/tzess.png" alt="enter image description here"></p>