title: In a plot, show in italic name passed as an element of a vector
body: <p>I have a vector of characters:</p>
  
  <pre><code>x &lt;- c("species1", "species2", "species3")
  </code></pre>
  
  <p>I would like to add each of these elements in a plot, as a legend, for instance, like this:</p>
  
  <pre><code>legend("topleft", x[1], bty="n")
  </code></pre>
  
  <p>But here comes my problem: it needs to be in italic.</p>
  
  <p>What I do is to try this:</p>
  
  <pre><code>legend("topright",expression(italic(x[1])), bty="n")
  </code></pre>
  
  <p>However, instead of getting it in italics the value in <code>x[1]</code> (in this case: <code>"species1"</code>), what I get in italics is the <code>"x[1]"</code> itself!</p>
  
  <p>Is there any way to solve this?</p>