0

I have plot a graph using ggplot2 and am using knitr within Lyx. I am trying to place a label in the plot and am using the annotate command:

ggplot() + annotate("text",y=10,x=0,label="\u3B1",vjust=-1,size = 6)

I believe \u3B1 will generate the greek alpha symbol. Unfortunately this only generates a normal lower case a.

How do I get the symbol I require to appear?

user20650
  • 24,654
  • 5
  • 56
  • 91
kribby
  • 45
  • 7
  • Your code works for me, but as an alt you could try `ggplot() + annotate("text",y=0.5, x=0.5,label="~alpha",vjust=-1,size = 6, parse=TRUE)`. If this also doesn't work you should add you system details to your question. – user20650 Mar 27 '17 at 11:37
  • Works for me as well, are you sure it's not printing the right character? As lowercase alpha does look very similar to "a" – caw5cv Mar 27 '17 at 11:41

0 Answers0