How can I insert a log symbol, in a ggplot text?
These were my tries:
myLabel = c("log_a b","log{a}")
ggplot(
data=data.frame(x=0,y=0)
) + geom_point(
aes(x=x,y=y)
) + annotate(
'text',
x = 0, y = 0,
parse = TRUE,size=10,
label = myLabel[2]) # here
Note: The above was taken from this post