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)) Best regards, Thomas Larsen [[alternative HTML version deleted]]
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))expression(atom*"%"^15*N) Uwe Ligges> > 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
"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
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. >string-quote it? plot(1:10,ylab=expression("atom% "^15*N)) Barry
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 at u.washington.edu University of Washington, Seattle