title: 'height' must be a vector or a matrix. barplot error
body: <p>I am trying to create a simple bar chart, but I keep receiving the error message</p>
  
  <pre><code>'height' must be a vector or a matrix
  </code></pre>
  
  <p>The barplot function I have been trying is</p>
  
  <pre><code>barplot(data, xlab="Percentage", ylab="Proportion")
  </code></pre>
  
  <p>I have inputted my csv, and the data looks as follows:</p>
  
  <pre><code>34.88372093 0.00029997
  35.07751938 0.00019998
  35.27131783 0.00029997
  35.46511628 0.00029997
  35.65891473 0.00069993
  35.85271318 0.00069993
  36.04651163 0.00049995
  36.24031008 0.0009999
  36.43410853 0.00189981
  ...
  </code></pre>
  
  <p>Where am I going wrong here?</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>EDIT:</strong></p>
  
  <pre><code>dput(head(data)) outputs:
  structure(list(V1 = c(34.88372093, 35.07751938, 35.27131783, 
  35.46511628, 35.65891473, 35.85271318), V2 = c(0.00029997, 0.00019998, 
  0.00029997, 0.00029997, 0.00069993, 0.00069993)), .Names = c("V1", 
  "V2"), row.names = c(NA, 6L), class = "data.frame")
  </code></pre>
  
  <p>and <code>barplot(as.matrix(data))</code> produced a chart with all the data one bar as opposed to each piece of data on a separate bar.</p>