title: Add error bars to a barplot
body: <p>I have two vectors. I want to make a barplot of the first vector (simple enough, right). The twist is that every element of the second vector is the standard deviation for every element of the first vector (which itself is the average of 4 other values). How can I do that?</p>
  
  <p>The vectors in question:</p>
  
  <pre><code>-4.6521175 0.145839723
   1.1744100 0.342278694
  -0.2581400 0.003776341
  -0.3452675 0.073241199
  -2.3823650 0.095008502
   0.5625125 0.021627196
  </code></pre>
  
  <p>I.e., how can I add the elements of the second column vector as error bars to the corresponding elements in the first column vector?</p>
  
  <p><a href="https://i.stack.imgur.com/f4rqZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f4rqZ.png" alt="enter image description here"></a></p>
  
  <p><strong>Note:</strong> Before you ask, yes I did search extensively on this site and did a lot of googling, but my problem is a bit more specific, i.e. what I found didn't match what I needed. </p>