Skip to content
Prev 58493 / 398502 Next

sub- and superscript in plot labels

try:

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

I have no understanding of why it works, formula fidgeting usually
requires use of subtitute().

Btw. I started out trying:
plot(1:10, xlab = substitute( expression(paste("nm SO"[4]^x, " ", 
                              mu, "eq cm"^{-2}, " yr"^{-1})), 
                              list(x="2-") ) )
but that gives a hyphen and not a minus trailing the superscript "2".

Bendix Carstensen