[R] how to make plotmath expression work together with paste

2006-03-05 Thread Paul Johnson
Recent questions about using plotmath have renewed my interest in this question I want to have expressions take values of variables from the environment. I am able to use expressions, and I am able to use paste to put text and values of variables into plots. But the two things just won't work

Re: [R] how to make plotmath expression work together with paste

2006-03-05 Thread Charles Annis, P.E.
:[EMAIL PROTECTED] On Behalf Of Paul Johnson Sent: Sunday, March 05, 2006 8:31 PM To: r-help@stat.math.ethz.ch Subject: [R] how to make plotmath expression work together with paste Recent questions about using plotmath have renewed my interest in this question I want to have expressions take values

Re: [R] how to make plotmath expression work together with paste

2006-03-05 Thread Gabor Grothendieck
Try bquote (I may not have followed precisely what you want but hopefully this gives the idea). Note that you may need to use a few judiciously placed ~ and phantom(), as shown, in order to maintain syntax: plot(NA, xlim = c(0, 100), ylim = c(0, 100)) avar1 - 10 amath1 - bquote(slope ==

Re: [R] how to make plotmath expression work together with paste

2006-03-05 Thread Uwe Ligges
Paul Johnson wrote: Recent questions about using plotmath have renewed my interest in this question I want to have expressions take values of variables from the environment. I am able to use expressions, and I am able to use paste to put text and values of variables into plots. But the