Skip to content
Prev 305573 / 398506 Next

Sub- or superscript in factorial variable - possible?

On Sep 15, 2012, at 7:15 PM, mcg wrote:

            
?plotmath
 boxplot(data$weight~data$treatments, xaxt="n")
 axis(1, 1:4, labels=expression(Control, P[2]*O[5], K[2]*SO[4], CaSO[4]) )

I will admit that the need for the "*"'s was not apparent to me until I used the initial example as a starting point and made incremental changes until I gotsuccess. So I am not suggesting that RTM should have been enough.