[R] more than one mathematical annotation into a legend

Thomas Roth (geb. Kaliwe) hamstersquats at web.de
Thu Jul 9 18:39:52 CEST 2009


Dear members,

Is there a way to put more than one mathematical annotation into a 
legend together with a calculated value?

x = 2
plot(1:10)

#Works
legend(8, 8,  substitute(t[m] == x))

#does not work
legend(4,4, c(substitute(t[m] == x), substitute(t[n] == x)))

Thanks


Thomas Roth




More information about the R-help mailing list