title: How can I swap labels and symbols in a legend in R?
body: <p>The legend that R creates when you call <code>legend()</code> has the symbols (or line types etc) on the left and the labels on the right. I'd like it the other way round, i.e. labels on the left (right-aligned) and the symbols on the right.</p>
  
  <p>I know that I can use <code>adj</code> to adjust the position of the labels, but with this they are not aligned properly anymore. If I set <code>adj=2</code> for example, the labels are to the left of the symbols, but the end of the text is not aligned with the symbols.</p>
  
  <p>Any pointers on how to do this using either the standard <code>legend()</code> function or a package would be appreciated.</p>