Maybe i am not correct, but it appears to me that there is an undesired space in expressions beginning with a superscript:
df <- data.frame(treatment=as.factor(c("A", "B")), value=c(1,2))
labels <- c(expression(""^14~CH[4]),
expression(""^14~CH[4]~"+"~"SO"[4]^{2-''}))
library(ggplot2)
ggplot(df, aes(treatment, value)) +
geom_bar(stat="identity") +
scale_x_discrete(labels=labels)
I could go to Photoshop to reduce the space between the superscripted 14 and the "C", but maybe there is a way in plotmath? Notice, that this is not happening in the second expression with a superscript in the end.