Re: [R] How to write "%" before superscript?

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Wed 03 May 2006 - 03:31:00 EST

On Tue, 2 May 2006, Larsen, Thomas wrote:

> I would like to write atom% 15N in the ylab of a plot - "15" should be
> written as superscript. How do I put "%" into the expression? It does
> not work if I type "%" directly after "atom" in the expression below.
>
> plot(1:10, ylab = expression(atom^15*N))
>

I would put % (and atom) in as a string "atom % "

  plot(1:10,ylab=quote("atom % "^{15}*N))

         -thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley@u.washington.edu	University of Washington, Seattle

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed May 03 03:34:54 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 03 May 2006 - 04:10:27 EST.

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