Skip to content
Prev 58488 / 398502 Next

sub- and superscript in plot labels

On Thu, 4 Nov 2004, Gavin Simpson wrote:

            
The problem is 2-.  That's not an R expression.  Using "2-" might give
what you want, but it will use a hyphen rather than a minus. Otherwise

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

will give a minus.