How to add an asterisk symbol in a mathematical expression?

前端 未结 1 1308
执念已碎
执念已碎 2021-02-08 05:41

I\'m trying to annotate a plot with R² value and significance coding, but I can\'t pass * as a symbol and not as the juxtaposition operator.

I\'ve tried

相关标签:
1条回答
  • 2021-02-08 06:33

    You need to use paste inside your expression:

    text(4,6,expression(paste(R^2==8^"**")))
    

    or

    text(6,4,expression(paste(R^2==8, "**")))
    

    enter image description here

    0 讨论(0)
提交回复
热议问题