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]]
>
> ______________________________________________
> R-help at r-project.org 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.