title: Adding a picture to plot in R
body: <p>I'm trying to add a picture (jpeg,png doesn't care) to a plot which is defined by the layout function. For example:</p>
  
  <pre><code>a&lt;-c(1,2,3,4,5)
  
  b&lt;-c(2,4,8,16,32)
  
  m &lt;- matrix(c(1,1,1,1,2,3,2,3), nrow = 2, ncol = 4)
  
  layout(m); hist(a);boxplot(a~b);plot(b~a)*
  </code></pre>
  
  <p><strong>Instead of the histogram on position 1 I want to add an image</strong> (In my case it's a map)</p>
  
  <p>I don't know how to deal with the jpeg package, maybe you can help me!</p>