[R] Sub/Superscript in plot in a loop

From: mavkoup <mavkoup_at_hotmail.com>
Date: Thu, 07 Apr 2011 18:46:20 -0700 (PDT)


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.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 08 Apr 2011 - 03:55:27 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 08 Apr 2011 - 12:00:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive