Message-ID: <298a6f60908190620s4c068d0dr4aaeaa177df78bf9@mail.gmail.com>
Date: 2009-08-19T13:20:02Z
From: e-letter
Subject: graph label greek symbol failure
In-Reply-To: <1250614758.29415.17.camel@prometheus.geog.ucl.ac.uk>
On 18/08/2009, Gavin Simpson <gavin.simpson at ucl.ac.uk> wrote:
> 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))
>
True, but the following commands fails:
plot(1:10,ylab="temperature expression(delta*t)")
plot(1:10,ylab="temperature" expression(delta*t))
Error: syntax error, unexpected SYMBOL, expecting ',' in
"plot(1:10,ylab="temperature" expression"
So I want to be able to have '?t' and 'temperature ?t' as a y-axis label.