[R] graph label greek symbol failure
Gavin Simpson
gavin.simpson at ucl.ac.uk
Tue Aug 18 18:59:18 CEST 2009
On Tue, 2009-08-18 at 13:06 +0100, e-letter wrote:
> On 17/08/2009, Michael Knudsen <micknudsen at gmail.com> wrote:
> > On Mon, Aug 17, 2009 at 12:51 PM, e-letter <inpost at gmail.com> wrote:
> >
> >> I have tried to add the delta (δ) symbol to the y axis label and the
> >> result is &D, using the command:
> >>
> >> ...ylab="δt"...
> >
> > Try ylab = expression(delta*t) instead.
> >
> This does not work, the result is
> expression(delta*t)
It works for the rest of us who suggested this.
plot(1:10, ylab = expression(delta*t))
gives me a plot with the require glyph in the y-axis label.
Can you show your code or, better still, some example data that shows
the problem for you so we can test this? See the posting guide for what
is required etc.
Off the top of the head, you did use it *within* the call to plot, yes?
If you just type that at the prompt you'd get what you claim to see:
> ylab = expression(delta*t)
> ylab
expression(delta * t)
Of course, I wouldn't have to guess of the top of my head if you'd shown
exactly what you *did* do ;-)
HTH
G
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Dr. Gavin Simpson [t] +44 (0)20 7679 0522
ECRC, UCL Geography, [f] +44 (0)20 7679 0565
Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk
Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/
UK. WC1E 6BT. [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
More information about the R-help
mailing list