title: Adjust spacing between text in horizontal legend
body: <p>I have a plot with a horizontal legend:</p>
  
  <pre><code> legend("bottomleft", inset = c(0, -0.3), bty = "n",
          x.intersp=0, xjust=0,yjust=0,
          legend=c("AAPL", "Information Technology",
                   "Technology Hardware and Equipment", "S&amp;P 500"),
          col=c("black", "red", "blue3", "olivedrab3"),
          lwd=2, cex = 0.5, xpd = TRUE, ncol = 4)
  </code></pre>
  
  <p>The problem is that there is a huge spacing between the first item of the legend, "AAPL", and the second item "Information Technology".</p>
  
  <p>I tried adjusting the spacing using <code>txt.width()</code>, but it didn't work at all. Or maybe I am not using this option as directed. This is how I have introduced the <code>txt.width</code> option inside <code>legend()</code>:</p>
  
  <pre><code>txt.width = c(2,1,1)
  </code></pre>
  
  <p>I am not sure if it relevant to mention, but my x-axis is an axis of dates!</p>
  
  <p>Is there an easy way of customizing the spaces between the text in the legend?</p>
  
  <p>Thanks!</p>