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

Peter Dalgaard p.dalgaard at biostat.ku.dk
Tue May 2 18:52:46 CEST 2006


"Larsen, Thomas" <thl at dmu.dk> writes:

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

How about expression("atom%"^15*N) ?

 
> Best regards,
> Thomas Larsen
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at 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
> 

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907




More information about the R-help mailing list