Plot approximately equal in geom_text

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.

+6
source share
1 answer

He will work with something on the left equation site. It can also be NULL .

 ggplot(data.frame(x=1:2, y=1:2), aes(x=x,y=y)) + geom_point() + geom_text(aes(label="NULL%~~%10^10", x=1.5, y=1.5), parse=T) 

enter image description here

+6
source

All Articles