title: plot numeric vector with names as x ticks
body: <p>I have a numeric vector and wish to plot each value on y-axis by their name on the x-axis.</p>
  
  <p>Example:</p>
  
  <pre><code>quantity &lt;- c(3,5,2)
  names(quantity) &lt;- c("apples","bananas", "pears")
  plot(quantity)
  </code></pre>
  
  <p>Each value is plotted with it's index number along the x-axis ie. 1,2,3.  How can I get it to show ("apples","bananas", "pears")?</p>