How to annotate() ggplot with latex

前端 未结 3 636
青春惊慌失措
青春惊慌失措 2020-12-13 09:19

I\'d like to add latex text to a ggplot2 plot using annotate(). Using expression(), as described here for adding latex to axis labels, does not see

3条回答
  •  情书的邮戳
    2020-12-13 09:35

    You can use the parse argument, without expression:

    p + annotate("text", x=10, y=40, label="text[subscript]", parse=TRUE)
    

提交回复
热议问题