Re: [R] Sub/Superscript in plot in a loop

From: David Winsemius <>
Date: Fri, 08 Apr 2011 07:44:51 -0400

On Apr 7, 2011, at 9:46 PM, mavkoup wrote:

> 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.

I'll bet you haven't tried:



David Winsemius, MD
West Hartford, CT

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 08 Apr 2011 - 11:48:32 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 - 11:50:27 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive