Re: [R] Expression evaluation of Plotting labels containing spaces

2013-06-04 Thread Pascal Oettli
Hello, ?plotmath -> See Also demo(plotmath) Regards, Pascal On 05/06/13 15:00, Santosh wrote: Thanks so much!! Would be it be better if in vignette of plotmath, x %~% y and x~~y; likewise, other operations (.e.g., x %*% y, x * y) may be grouped, so that are not missed by a layman like me! -

Re: [R] Expression evaluation of Plotting labels containing spaces

2013-06-04 Thread Santosh
Thanks so much!! Would be it be better if in vignette of plotmath, x %~% y and x~~y; likewise, other operations (.e.g., x %*% y, x * y) may be grouped, so that are not missed by a layman like me! - just a thought... Thanks, Santosh On Tue, Jun 4, 2013 at 9:13 PM, David Winsemius wrote: > > O

Re: [R] Expression evaluation of Plotting labels containing spaces

2013-06-04 Thread David Winsemius
On Jun 4, 2013, at 8:39 PM, Santosh wrote: Dear Rxperts, How do I overcome the anomaly as in the second case of examples below? exc <- list(units=list( c(m^2)) ,vars= list(c('asb')), ,label= list(c('abs surf body'))) plot(1:10,1:10, ylab=parse(text= paste(exc$vars[1],' (',exc$units[1],')',

Re: [R] Expression evaluation of Plotting labels containing spaces

2013-06-04 Thread Pascal Oettli
Hi, On possibility is: par(mfrow=c(2,1), mar=c(5.1,5.1,4.1,2.1)) plot(1,1, ylab=expression(a.s.b.~(m^2))) plot(1,1, ylab=expression(abs~surf~body~(m^2))) Regards, Pascal On 05/06/13 11:39, Santosh wrote: Dear Rxperts, How do I overcome the anomaly as in the second case of examples below? exc

Re: [R] Expression evaluation of Plotting labels containing spaces

2013-06-04 Thread Pascal Oettli
Hello, Example not reproducible: > exc <- list(units=list( c(m^2)) ,vars= list(c('asb')), ,label= list(c('abs surf body'))) Error: object 'm' not found Regards, Pascal On 05/06/13 11:39, Santosh wrote: Dear Rxperts, How do I overcome the anomaly as in the second case of examples below? e

[R] Expression evaluation of Plotting labels containing spaces

2013-06-04 Thread Santosh
Dear Rxperts, How do I overcome the anomaly as in the second case of examples below? exc <- list(units=list( c(m^2)) ,vars= list(c('asb')), ,label= list(c('abs surf body'))) plot(1:10,1:10, ylab=parse(text= paste(exc$vars[1],' (',exc$units[1],')',sep=''))) plot(1:10,1:10, ylab=parse(text= paste(