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

Thomas Lumley tlumley at u.washington.edu
Tue May 2 19:31:00 CEST 2006

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 Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle

More information about the R-help mailing list