[R] help with expression
ilai
keren at math.montana.edu
Wed Mar 14 16:53:08 CET 2012
On Wed, Mar 14, 2012 at 8:56 AM, Thomas Hoffmann
<hoffmann at giub.uni-bonn.de> wrote:
> Hi all,
>
> I still fail to plot an axis title with the following expression:
>
> plot(0,xlab=expression('(SOC [' * kgm^{-2} * '])' * ^{-2}))
>
> the xlab should look like: (SOC [kgm^2])^0.25
>
> with an out bracket and a superscript.
>
Like this ?
plot(0,xlab=expression(paste('(SOC[',kgm^-2,'])'^0.25,sep='')))
> Thanks for your advice.
>
> Thomas
>
>
> [[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.
More information about the R-help
mailing list