title: In R, getting top 10 values of matrix and outputting row names to vector
body: <p>How can I extract the top ten values from a single column matrix, and output the corresponding row names to a vector?</p>
  
  <p>I want to put labels on a pie chart I have generated, but for the life of me can't figure out how.</p>
  
  <p>Many thanks.</p>
  
  <p>Tim</p>