📜  如何在绘图 r 中添加文本框 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:10.927000             🧑  作者: Mango

代码示例1
plot(1:10, 1:10, 
     main="text(...) examples\n~~~~~~~~~~~")
text(4, 9, expression(hat(beta) == (X^t * X)^{-1} * X^t * y))
text(7, 4, expression(bar(x) == sum(frac(x[i], n), i==1, n)))