Re: [R] combining expressions in mathplot

2010-06-09 Thread RICHARD M. HEIBERGER
Uwe, Very nice, thank you. Rich [[alternative HTML version deleted]] __ R-help@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 comm

Re: [R] combining expressions in mathplot

2010-06-09 Thread Uwe Ligges
On 09.06.2010 06:15, RICHARD M. HEIBERGER wrote: Is there a cleaner way of combining two expressions. This example works and gives what I want plot(1:10) aa<- expression(alpha==.05) bb<- expression(beta ==.80) aabb<- expression(alpha==.05 ~ ", " ~ beta ==.80) text(5, 10, aa) text(5, 9, bb)

Re: [R] combining expressions in mathplot

2010-06-08 Thread RICHARD M. HEIBERGER
Seb, Thanks. That doesn't solve the problem of combining two expressions. My aa and bb are expressions constructed somewhere else and passed to the current function which wants to use them together. Your solution moves the construction of aa and bb into the function and is equivalent to my aabb.

Re: [R] combining expressions in mathplot

2010-06-08 Thread Sebastian P. Luque
On Wed, 9 Jun 2010 00:15:19 -0400, "RICHARD M. HEIBERGER" wrote: > text(5,1, parse(text=paste(deparse(aa[[1]]), deparse(bb[[1]]), > sep="~"))) text(5,2, parse(text=paste(deparse(aa[[1]]), > deparse(bb[[1]]), sep="~', '~"))) > Is there a cleaner way of combining the expressions aa and bb to get >