title: Extent of boundary of text in R plot
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6234335/finding-the-bounding-box-of-plotted-text">finding the bounding box of plotted text</a>  </p>
  </blockquote>
  
  
  
  <p>I've got a simple plot to which I've added some text to the plotting region; I'd like to put a border around this text.  Is there a way to get the boundaries of the actual text so that I can use these for the plotting of the rectangle, or do I just need to use trial and error to make the rectangle look about right?!</p>
  
  <p>At the moment, my code is:</p>
  
  <pre><code>plot(dep, eqt[,1], type="l")
  text(12,200,"A notes about this plot!", font=2, cex=2)
  rect(10,140,14,260)
  </code></pre>