Re: [R] Superscript/Subscript in main title

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Wed, 04 Jun 2008 17:54:12 -0300

Try this:

plot(1:10, main = expression(Emission~of~CO[2]~with~time))

On Wed, Jun 4, 2008 at 5:31 PM, Tariq Perwez <tariq.perwez_at_gmail.com> wrote:

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

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

	[[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:39:56 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