[R] Plotmath with values?

2008-12-31 Thread Mike Prager
I hope to use the plotmath facility to print titles that mix math and values of R variables. The help for plotmath has an example, which after repeated reading, I find baffling. Likewise, I have read the help file for substitute (wqhich seems to be needed) without ever understanding what it does,

Re: [R] Plotmath with values?

2008-12-31 Thread Gabor Grothendieck
Try: aa - 22 plot(1, main = bquote(a == .(aa))) On Wed, Dec 31, 2008 at 11:47 AM, Mike Prager mike.pra...@noaa.gov wrote: I hope to use the plotmath facility to print titles that mix math and values of R variables. The help for plotmath has an example, which after repeated reading, I find

Re: [R] Plotmath with values?

2008-12-31 Thread Charles C. Berry
On Wed, 31 Dec 2008, Mike Prager wrote: I hope to use the plotmath facility to print titles that mix math and values of R variables. The help for plotmath has an example, which after repeated reading, I find baffling. Likewise, I have read the help file for substitute (wqhich seems to be

Re: [R] Plotmath with values?

2008-12-31 Thread Mike Prager
Charles C. Berry cbe...@tajo.ucsd.edu wrote: On Wed, 31 Dec 2008, Mike Prager wrote: I hope to use the plotmath facility to print titles that mix math and values of R variables. [...] plot(1:3, 1:3, main = bquote(a == .(aa))) You have to follow a couple of 'See Also' links

Re: [R] Plotmath with values?

2008-12-31 Thread Sarah Goslee
Hi all, I hadn't used bquote before, so I gave this a try, only to encounter some odd behavior. R 2.8.0 on Fedora Core 8 (no RPM for 2.8.1 yet) vanilla session with no packages loaded (same behavior with my usual set of packages). On Wed, Dec 31, 2008 at 12:30 PM, Gabor Grothendieck

Re: [R] Plotmath with values?

2008-12-31 Thread Sarah Goslee
Sorry, apparently I can't type. Gabor's example and my test case should be identical, and weren't in my original email (now fixed). Sarah On Wed, Dec 31, 2008 at 1:42 PM, Sarah Goslee sarah.gos...@gmail.com wrote: Hi all, I hadn't used bquote before, so I gave this a try, only to encounter

Re: [R] Plotmath with values?

2008-12-31 Thread Paul Johnson
On Wed, Dec 31, 2008 at 10:47 AM, Mike Prager mike.pra...@noaa.gov wrote: I hope to use the plotmath facility to print titles that mix math and values of R variables. The help for plotmath has an example, which after repeated reading, I find baffling. Likewise, I have read the help file for