title: How to plot a CSV file containing labels and their counts in R?
body: <p>R newbie here, so you're probably going to judge but here's my question.</p>
  
  <p>I have a very simple structured CSV file that has 2 columns: labels (ASCII text values) as column 1 and their respective counts (numerical) as column 2.</p>
  
  <p>For example, the CSV is of the format:</p>
  
  <pre><code>type,count
  cat,23000
  dog,444566,
  wolf,3442
  tiger,306
  ...
  </code></pre>
  
  <p>I want to plot a simple line graph in R that has 'counts' as y-axis and labels on x-axis. I wish to actually be able to see the 'labels' such as 'dog' 'cat' marked on the x-axis or data-point. How do I do this in R?</p>
  
  <p>Here's what I have so far:</p>
  
  <pre><code>&gt; heresmydata &lt;- read.csv("data.csv")
  &gt; matplot(heresmydata[, 1], heresmydata[, -1], type="l")
  Warning messages:
  1: In xy.coords(x, y, xlabel, ylabel, log = log) :
    NAs introduced by coercion
  2: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
  &gt; 
  </code></pre>
  
  <p>It produces an empty graph with improper labels.</p>