I only want to write Fe2+ with "2+" superscripted.
This works ("+2" is superscripted, but the sequence is wrong):
df <-data.frame(a=seq(1,20),b=seq(1,20))
ggplot(df, aes(x = a, y = b)) + geom_point() +
xlab(expression(Fe^{+2} ~ (mu ~ M)))
This doesn't:
ggplot(df, aes(x = a, y = b)) + geom_point() +
xlab(expression(Fe^{2+} ~ (mu ~ M)))
apparently, the "+" operator after "2" in {2+} needs special treatment. Any help is appreciated.
Alernatively, i would be delighted if someone may solve the same problem for the following expression:
ggplot(df, aes(x = a, y = b)) + geom_point() +
xlab(bquote(Fe^2+~' '~'('*mu~'M)'))