Re: [Rd] substitute and expression (Peter Dalgaard)

2007-07-19 Thread Peter Dalgaard
John Maindonald wrote: > In this connection, note the following > > > a4 <- 4 > > plotThis <- bquote(alpha==.(a), list(a=a4)) > > do.call(plot, list(1:10, main=do.call(expression, c(plotThis > > do.call(plot, list(1:10, main=do.call(expression, plotThis))) > Error in do.call(expression, plo

Re: [Rd] substitute and expression (Peter Dalgaard)

2007-07-19 Thread John Maindonald
rote: > From: Peter Dalgaard <[EMAIL PROTECTED]> > Date: 18 July 2007 1:39:50 AM > To: Deepayan Sarkar <[EMAIL PROTECTED]> > Cc: R Development Mailing List <[EMAIL PROTECTED]> > Subject: Re: [Rd] substitute and expression > > > Deepayan Sarkar wro

Re: [Rd] substitute and expression

2007-07-17 Thread Peter Dalgaard
Deepayan Sarkar wrote: > On 7/16/07, Peter Dalgaard <[EMAIL PROTECTED]> wrote: > >> Deepayan Sarkar wrote: >> >>> Hi, >>> >>> I'm trying to understand whether the use of substitute() is >>> appropriate/documented for plotmath annotation. The following two >>> calls give the same results: >>

Re: [Rd] substitute and expression

2007-07-16 Thread Deepayan Sarkar
On 7/16/07, Peter Dalgaard <[EMAIL PROTECTED]> wrote: > Deepayan Sarkar wrote: > > Hi, > > > > I'm trying to understand whether the use of substitute() is > > appropriate/documented for plotmath annotation. The following two > > calls give the same results: > > > > > >> plot(1:10, main = expression

Re: [Rd] substitute and expression

2007-07-16 Thread Gabor Grothendieck
On 7/16/07, Deepayan Sarkar <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to understand whether the use of substitute() is > appropriate/documented for plotmath annotation. The following two > calls give the same results: > > > plot(1:10, main = expression(alpha == 1)) > > do.call(plot, list(1:10

Re: [Rd] substitute and expression

2007-07-16 Thread Peter Dalgaard
Deepayan Sarkar wrote: > Hi, > > I'm trying to understand whether the use of substitute() is > appropriate/documented for plotmath annotation. The following two > calls give the same results: > > >> plot(1:10, main = expression(alpha == 1)) >> do.call(plot, list(1:10, main = expression(alpha ==

[Rd] substitute and expression

2007-07-16 Thread Deepayan Sarkar
Hi, I'm trying to understand whether the use of substitute() is appropriate/documented for plotmath annotation. The following two calls give the same results: > plot(1:10, main = expression(alpha == 1)) > do.call(plot, list(1:10, main = expression(alpha == 1))) But not these two: > plot(1:10, m