title: How to make labels in the legend align right in R?
body: <p><a href="https://i.stack.imgur.com/6FIET.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6FIET.png" alt="enter image description here"></a></p>
  
  <p>As this picture shows, how can I make these labels align right? </p>
  
  <p>I am using legend in R.</p>