Thomas Roth (geb. Kaliwe)
2009-Jul-09 16:39 UTC
[R] more than one mathematical annotation into a legend
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
On Thu, Jul 9, 2009 at 9:39 AM, Thomas Roth (geb. Kaliwe)<hamstersquats at web.de> wrote: try this: legend(4,4, expression(t[m] == x, t[n] == x)) cheers, Zhiliang> 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 > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >