I need to achieve superscript in an axis label within ggplot2, similiar to this question: Superscript and subscript axis labels in ggplot2
However, I will need to write something like this: Ca^2+. This seems not to work with this approach, even if I put the exponent in { }
with the bquote
command. I tried to read through help("plotmath")
but couldn't find an example for my case. I tried escaping the +
with \+
and ++
but was not successful.
Edit: I would like to not use any additional packages.