Answers for "add text to plot r"

1

how to add a text box in plot r

plot(1:10, 1:10, 
     main="text(...) examplesn~~~~~~~~~~~")
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)))
Posted by: Guest on November-25-2020

Browse Popular Code Answers by Language