title: How can i barplot a dataframe contains character an numeric in R?
body: <p>I have this data frame</p>
  
  <pre><code>product Total
  AF064   21
  AF065   24
  AF066   1
  AF067   13
  AF068   6
  AF069   3
  AF070   5
  AF071   1
  AF072   3
  AF073   3
  AF074   5
  AF075   2
  AF076   28
  AF077   0
  AF078   3
  AF079   10
  AF080   0
  AF081   13
  AF082   0
  AF083   3
  AF084   3
  AF085   2
  AF086   3
  AF087   0
  AF088   1
  AF089   1
  AF090   2
  AF091   4
  AF092   2
  AF093   3
  AF094   2
  AF095   3
  AF096   1
  AF097   2
  AF098   2
  AF099   1
  AF100   21
  AF101   1
  AF102   3
  </code></pre>
  
  <p>I want to make barplots from this dataframe.</p>
  
  <p>My code is </p>
  
  <pre><code>barplot(product,Total)
  **Error in -0.01 * height : non-numeric argument to binary operator**
  </code></pre>
  
  <p>I also tried</p>
  
  <pre><code>barplot(dataframe)
  **Error in barplot.default(dataframe) : 
    'height' must be a vector or a matrix**
  </code></pre>
  
  <p>I've also tried <code>as.character</code> for the product but still can't do the graph. 
  I really appreciate your help guys, much thanks.</p>