title: add text to horizontal barplot in R, y-axis at different scale?
body: <p>I'm trying to add some text to the right hand side of a horizontal barplot at the same heights as each bar, however, both text() and axis() don't seem to plot this at the heights corresponding to each bar. </p>
  
  <p>Here's a similar barplot</p>
  
  <pre><code>x &lt;- runif(10, 0,1)
  y &lt;- matrix(c(x, 1-x), nrow=2, ncol=10, byrow=TRUE)
  barplot(y, horiz=TRUE, beside=FALSE, names.arg=seq(1,10,1), las=1, xlim=c(0, 1.2))
  </code></pre>
  
  <p>Neither of these two options align properly, how does the scaling work here? </p>
  
  <pre><code>axis(4, at=seq(1,10,1), labels=seq(1,10,1))
  text(1.1, seq(1,10,1), labels=seq(1, 10, 1))
  </code></pre>