The short version: How would I make this contrived code plot a proper greek beta character AND the rest of the label string, with the space and the less than ch
This should do it:
g <- ggplot(data=df, aes(x=a,y=b)) + geom_point()
g + annotate("text", x=5,y=4,parse=TRUE, label="beta==1.00 * ' p<0.0001'")
It's a matter of splitting the label with single quotes to the side of the whitespace and connecting two label bits with *
. You also need the ==
for equals to.