Re: [R] use of bquote

2013-11-22 Thread Richard M. Heiberger
Peter, thank you. this is perfect. I have been looking for this idiom for years. xyplot(0 ~ 1, sub=as.expression( bquote(pi==.(pi) ~ e==.(exp(1))) )) Can you add this idiom to the examples in the ?plotmath page. And perhaps also to the ?xyplot page Rich On Fri, Nov 22, 2013 at 3:14

Re: [R] use of bquote

2013-11-22 Thread David Winsemius
On Nov 22, 2013, at 12:14 AM, peter dalgaard wrote: > > On 22 Nov 2013, at 07:53 , Rolf Turner wrote: > >> On 11/22/13 18:47, William Dunlap wrote: a <- 2; b <- 3; xyplot(1:10 ~ a*(1:10), sub = c(bquote(a == .(a) ~ b==.(b the subtitle contains three copies of the "a =

Re: [R] use of bquote

2013-11-22 Thread peter dalgaard
On 22 Nov 2013, at 07:53 , Rolf Turner wrote: > On 11/22/13 18:47, William Dunlap wrote: >>> a <- 2; b <- 3; xyplot(1:10 ~ a*(1:10), sub = c(bquote(a == .(a) ~ >>> b==.(b >>> >>> the subtitle contains three copies of the "a = 2 b = 3" phrase. >>> Why does it do that? How do I tell it to

Re: [R] use of bquote

2013-11-21 Thread Rolf Turner
On 11/22/13 18:47, William Dunlap wrote: a <- 2; b <- 3; xyplot(1:10 ~ a*(1:10), sub = c(bquote(a == .(a) ~ b==.(b the subtitle contains three copies of the "a = 2 b = 3" phrase. Why does it do that? How do I tell it to give me only one copy? To avoid it don't wrap bquote() with c(). The

Re: [R] use of bquote

2013-11-21 Thread William Dunlap
ehalf > Of Richard M. Heiberger > Sent: Thursday, November 21, 2013 9:07 PM > To: r-help > Subject: [R] use of bquote > > When I use run this expression > > a <- 2; b <- 3; xyplot(1:10 ~ a*(1:10), sub = c(bquote(a == .(a) ~ b==.(b > > the subtitle contains

[R] use of bquote

2013-11-21 Thread Richard M. Heiberger
When I use run this expression a <- 2; b <- 3; xyplot(1:10 ~ a*(1:10), sub = c(bquote(a == .(a) ~ b==.(b the subtitle contains three copies of the "a = 2 b = 3" phrase. Why does it do that? How do I tell it to give me only one copy? Rich __ R-he