[R] Sub/Superscript in plot in a loop

mavkoup mavkoup at hotmail.com
Fri Apr 8 03:46:20 CEST 2011


I have a for loop with counter i and I'm producing plots where I ultimately
want to label the axes:

"Entry a_i from P^q", where a, P and q are just letters, and i is the value
of the for loop counter.

I've tried various combinations of paste, expression and substitute, but I
can't get this to work nicely.

Thanks much!



--
View this message in context: http://r.789695.n4.nabble.com/Sub-Superscript-in-plot-in-a-loop-tp3435021p3435021.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list