title: Unicode character with subscript
body: <p>I want to add a Unicode character which has two letters as subscripts to my plot legend in R.
  The character is an r with an accent breve (ř) and the two letters are i and j.</p>
  
  <p>I already looked at this question: <a href="https://stackoverflow.com/questions/25434739/unicode-character-with-superscript">Unicode character with superscript</a> and tried to adapt the answers to my problem.</p>
  
  <p>Here is what I tried:</p>
  
  <pre><code>plot(1,pch=NA,ylab="",xlab="",axes=F)
  legend("top",legend=paste("1-","\u{0159}"),bty ="n",bg = "white",cex=2)
  legend("center",legend=paste("1-","\u{0159}","\u{0069}","\u{006A}"),bty="n",bg = "white",cex=2)
  legend("bottomleft",legend=expression("1-"*"\u0159"["\u0069"*"\u006A"]),bty="n",bg = "white",cex=2)
  legend("bottomright", legend = quote("1-" *"\u0159"["\u0069"*"\u006A"]),bty="n",bg = "white",cex=2)
  </code></pre>
  
  <p>The resulting plot can be found below</p>
  
  <p><img src="https://i.stack.imgur.com/fBS0E.png" alt="enter image description here"></p>
  
  <p>Both the Unicode letter and the subscript work fine by themselves but not together.
  paste() with any combination of [ ] does return an error, but I think this is to be expected as paste can't handle [ ] for subscripts.</p>
  
  <p>The FAQ site on <a href="http://cran.r-project.org/bin/windows/base/rw-FAQ.html" rel="nofollow noreferrer">CRAN</a> might give a hint as I am using Windows but I am not sure how to implement this:</p>
  
  <blockquote>
    <p>3.6 I don't see characters with accents at the R console, for example in ?text.</p>
    
    <p>You need to specify a font in Rconsole (see Q5.2) that supports the encoding in use. This used to be a problem in earlier versions of Windows, but now it is hard to find a font which does not.</p>
    
    <p>Support for these characters within Rterm depends on the environment (the terminal window and shell, including locale and codepage settings) within which it is run as well as the font used by the terminal window. Those are usually on legacy DOS settings and need to altered.</p>
  </blockquote>