|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
more than one mathematical annotation into a legendDear 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@... 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. |
|
|
Re: more than one mathematical annotation into a legendOn Thu, Jul 9, 2009 at 9:39 AM, Thomas Roth (geb.
Kaliwe)<hamstersquats@...> 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@... 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. > ______________________________________________ R-help@... 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. |
|
|
Re: more than one mathematical annotation into a legendin the legend there's x but not the value of x which actually should be
shown... #does not work x = 2 plot(1:10) legend(4,4, expression(t[m] == x, t[n] == x)) #legend contains x but not the value of x So this won't work Zhiliang Ma schrieb: > On Thu, Jul 9, 2009 at 9:39 AM, Thomas Roth (geb. > Kaliwe)<hamstersquats@...> 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@... 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. >> >> > > ______________________________________________ R-help@... 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. |
|
|
Re: more than one mathematical annotation into a legendThomas Roth (geb. Kaliwe) wrote: > in the legend there's x but not the value of x which actually should be > shown... > > #does not work > > x = 2 > plot(1:10) > legend(4,4, expression(t[m] == x, t[n] == x)) If in separate lines, e.g.: legend(4, 4, do.call("expression", list( substitute(t[m] == x, list(x=x)), substitute(t[n] == x, list(x=x))))) Best wishes, Uwe Ligges > #legend contains x but not the value of x > > So this won't work > > > > Zhiliang Ma schrieb: >> On Thu, Jul 9, 2009 at 9:39 AM, Thomas Roth (geb. >> Kaliwe)<hamstersquats@...> 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@... 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. >>> >>> >> >> > > ______________________________________________ > R-help@... 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. ______________________________________________ R-help@... 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. |
| Free embeddable forum powered by Nabble | Forum Help |