Problem Fixed: axes label

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problem Fixed: axes label

ogbos okike
Hi Peter,
Many thanks. It worked.
Regards
Ogbos

On 1 August 2011 14:05, Peter Ehlers <[hidden email]> wrote:

> On 2011-08-01 03:32, ogbos okike wrote:
>
>> Dear All,
>> I am trying to put 10^-8 st km^-2day^-1 on x-axis of my plot. I tried
>> using
>> : ylab = expression(paste("st / ", plain(km)^2, " / day")) to see if I can
>> at least get the unit before thinking about the power of 10  (10^-8).
>>
>> However, ylab = expression(paste("st / ", plain(km)^2, " / day")) didn't
>> give the result I expected. The power 2 in km was missing.
>>
>
> Works for me. But I don't see the need for paste() or plain().
> Try this:
>
>  plot(0, ylab="", xlab="")
>  title(ylab = expression(10^{-8} ~ "st" ~ "km"^{-2} ~ "day"^{-1}))
>
> Replace any '~' with '*' if you don't want the space.
>
> Peter Ehlers
>
> >
>
>>
>> I will be glad for any help on how to label 10^-8 st km^-2day^-1 on the
>> axis.
>> Many thanks
>> Regards
>> Ogbos
>>
>>        [[alternative HTML version deleted]]
>>
>> ______________________________**________________
>> [hidden email] mailing list
>> https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help>
>> PLEASE do read the posting guide http://www.R-project.org/**
>> posting-guide.html <http://www.R-project.org/posting-guide.html>
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.