title: Converting sequence expression to a string in R plot label
body: <pre><code>ab &lt;- 1:4
  plot(ab, main = paste(&quot;value&quot;,ab))
  </code></pre>
  <p>The above produces</p>
  <p><a href="https://i.stack.imgur.com/xfnTf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xfnTf.png" alt="enter image description here" /></a></p>
  <p>Whereas I want the label to show exactly like <code>value 1:4</code>. I know I can do this by tweaking the <code>paste</code> function something like <code>paste0(&quot;value &quot;,ab[1],&quot;:&quot;, ab[4])</code>. But there must be a simpler way and also sometimes <code>ab</code> is just a single number, so I want something consistent that works for both cases. I also tried with <code>expression</code> and <code>bquote</code>, but can't figure out a way. Thanks.</p>