0

In an R plot I add some parameters using:

text <- c( 
paste("T=", T, "K"),
paste("M=", M, "g/mol"),
paste("E(v_rms)=", round(Evrms,4), "eV"),
paste("E_A=", round(Elim,4), "eV"),
paste("P(E>E_A)=", signif(1-y2sum[j],digits=4)) )
legend("topright", text)

Is it doable to display e.g. "v_rms" mathematicly correctly? The resulting plot looks like this: enter image description here

dani
  • 3,677
  • 4
  • 26
  • 60
  • Look up `expression()` or `bquote()`. They allow for more control over text. The latter allows for variable substitution in the text, which is why I prefer bquote over expression. – Max Candocia Sep 17 '14 at 16:28
  • Take a look at http://stackoverflow.com/q/10156417/2954547 – shadowtalker Sep 17 '14 at 17:07

0 Answers0