title: How to wrap label text in R?
body: <p>I'm working on a horizontal barplot with survey data. The labels for the y axis will be questions from the survey. The questions are rather long, and therefore I need to wrap the text of each question so that it appears on 2-3 lines. Can someone share how to most simply do this in base R?  </p>
  
  <pre><code>counts &lt;- c(5, 4.9, 4.4, 4.8, 4.9, 5.0, 4.9, 4.9, 4.9)
  
  barplot(counts, col=c("deepskyblue2"), border = NA,  
          family="Arial", horiz = T, xlim = range(0,6))
  </code></pre>
  
  <p>I need the labels for each to wrap across 2-3 lines.</p>