title: Multiple values on each line with dotchart in R
body: <p>I have the following input file for R:</p>
  <pre><code>car    1
  car    2 
  car    3 
  car2   1 
  car2   2 
  car2   3 
  </code></pre>
  <p>I then use the following commands to plot my graph:</p>
  <blockquote>
  <p>autos_data &lt;- read.table(&quot;~/Documents/R/test.txt&quot;, header=F)</p>
  <p>dotchart(autos_data$V2,autos_data$V1)</p>
  </blockquote>
  <p>But this plots each car and car2 value on a new line, how can I plot the chart so that all the car values are on one line and all the car2 values are on another line.</p>