Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 R² 值和重要性编码来注释绘图,但我不能*作为符号传递,也不能作为并列运算符传递。
*
我试过?plot.math了,这是我试过的
?plot.math
plot(1:10,1:10) text(6,4,expression(R^2==8)) text(6,4,expression(R^2==8^{**})) Error: unexpected '^' in "text(6,4,expression(R^2==8^{**"
您需要paste在表达式中使用:
paste
text(4,6,expression(paste(R^2==8^"**")))
或者
text(6,4,expression(paste(R^2==8, "**")))