I cannot figure out how to put an approximately equal character in front of the text inserted with geom_text . It works:
ggplot(data.frame(x=1:2, y=1:2), aes(x=x,y=y)) + geom_point() + geom_text(aes(label="10^10", x=1.5, y=1.5), parse=T)
If I put %~~% in front of the text
ggplot(data.frame(x=1:2, y=1:2), aes(x=x,y=y)) + geom_point() + geom_text(aes(label="%~~%10^10", x=1.5, y=1.5), parse=T)
it returns an error: unexpectedly SPECIAL% ~~%
I found some related questions, but could not apply these tips. I am using the ggplot2_0.9.2.1 package. The grDevices package is also downloaded.
Drdom source share