[R] Greek letters and subscripts in axis labels or titles

About this list Date view Thread view Subject view Author view Attachment view

From: Andersson, Henrik (H.Andersson@nioo.knaw.nl)
Date: Wed 12 May 2004 - 22:36:09 EST


Message-id: <65F6E1EC64DCA6489800C09A2007FC6E1817A5@cememail1.nioo.int>

A very brief question.

I have managed to put greek letters in my axis labels using
expression().

Question is, is there an easier (shorter) way than typing

plot(runif(10),ylab=expression(NH[4]~(mu~M)),xlab="Time (h)")

to get the subscripts and micro sign.

Like NH$_4$ $\mu M$ would be nice :)
-------------------------------------------------------------
Henrik Andersson
Netherlands Institute of Ecology -
Centre for Estuarine and Marine Ecology
P.O. Box 140
4400 AC Yerseke
Phone: +31 113 577473
h.andersson@nioo.knaw.nl
http://www.nioo.knaw.nl/ppages/handersson

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:09 EST