Skip to content
Back to formatted view

Raw Message

Message-ID: <51AEA711.1080109@ymail.com>
Date: 2013-06-05T02:48:49Z
From: Pascal Oettli
Subject: Expression evaluation of Plotting labels containing spaces
In-Reply-To: <CAN_e6Xsb_WBW=yOAs+Zf=TnziCSOiFbGh2nk4bZ=8_m6cv=hnw@mail.gmail.com>

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?
>
> 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(exc$label[1],'
> (',exc$units[1],')',sep='')))
>
> Thanks so much!
>
> Santosh
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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 commented, minimal, self-contained, reproducible code.
>