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

Reply via email to