[R] Superscript/Subscript in main title

From: Tariq Perwez <tariq.perwez_at_gmail.com>
Date: Wed, 04 Jun 2008 16:31:08 -0400


I have been trying to figure out how to get superscript/subscript in the main title for a plot. I have tried various approaches and suggestions but none of them work. I am trying to get the following as the main title of my plot:

Emission of CO2 with time

(but note that 2 is subscript.)

I have tried

plot(main="Emission of C"expression(O[2]) "with time")

and I get error message. I have also tried

plot(main="Emission of C"quote(O[2]) "with time")

I have also tried

plot(main"")
mtext("Emission of C"expression(O[2]) "with time")

I keep getting errors. I have searched the archives but none of the threads seem to touch upon this. I would appreciate any suggestion. Regards,

Tariq

        [[alternative HTML version deleted]]



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 Wed 04 Jun 2008 - 21:18:40 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 Wed 04 Jun 2008 - 22:30:45 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