'Special characters in ggplot2 axis
I am hoping to get some quick help with adding a superscript "-1" after my grams symbol. I am shooting for:
With my code below:
labs(y = expression(paste("Fe ("mu "mol g"^-{1}")")),
x = expression(paste('OM (%)'))) +
But it instead reads out a list of 93 describing my ggplot code. Can anyone please help? I have spent an unacceptable amount of time trying to figure this out, and so desperately want to move on with my day.
TIA
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|