Skip to content
Prev 58489 / 398503 Next

sub- and superscript in plot labels

Gavin Simpson wrote:
With further playing around, it would appear that you can sort of 
achieve what I was looking for by changing the ordering of the 
characters in the braces on the superscript:

plot(1:10, xlab = expression(paste("nm SO"[4]^{-2}, " ", mu, "eq
cm"^{-2}, " yr"^{-1})))

which works as required.

Is this intentional behaviour? My original question still stands, 
however, is there a way to have {2-} appear as the superscript?

The forgotten version info (sorry!):

 > version
          _
platform i686-pc-linux-gnu
arch     i686
os       linux-gnu
system   i686, linux-gnu
status   Patched
major    2
minor    0.0
year     2004
month    10
day      25
language R

Running on Fedora Core 2.

Many thanks

Gavin