I would like to add annotate text with the label:
lambda = £5,000/Q.
But where lambda is a Greek letter.
Parse inside text doesn't accept £ or ,
All the guidance online seems to point towards combining text. So "5000/Q" is not a problem but I really would like the £ and the ,.
Any ideas?
Edit because perhaps I wasn't clear enough that it is the character symbols (£ and ,) that are giving me troubles.
Let's take this as an example:
ggplot(data=data.frame(y=c(1,2,3),x=c(1,2,3)), aes(y=y, x=x)) + geom_point() + annotate("text", label="lambda", x=2, y=2.5, parse=T)
No problem, right? Now try and add a '£' symbol.
ggplot(data=data.frame(y=c(1,2,3),x=c(1,2,3)), aes(y=y, x=x)) + geom_point() + annotate("text", label="lambda~£", x=2, y=2.5, parse=T)
And here's the error:
Error: <text>:1:8: unexpected input
1: lambda~£
^
This has not been addressed in any other stackoverflow post to my knowledge.
Any ideas?