I would like to add sub/superscript to some letters/characters in a ggplot2 point plot. I know how to do this in the axes, but in this case, because they are special characters, I define a character vector before plotting:
IPA=(c("ph", "th", "kh", "p", "t", "k", "ts", "tsh", etc.))
I want to plot letter combinations such as p^[h] and ts^[h] for the points in the graph but this syntax doesn't work (nor p^{h} or p^h). See graphic.
p <- ggplot(data, aes(x, y, label=IPA))
p + geom_text(size = 5) +
theme(legend.position="none") +
scale_shape_manual(values = IPA)