[R] text(x,y,expression(sqrt(txt))), where txt is a text string.

John Maindonald john.maindonald at anu.edu.au
Thu Aug 12 06:22:42 CEST 1999

I am using R0.65.0 development version (August 10 1999) under Unix,
and 0.64.2 under Windows 95.

I have e. g. 
> txt <- "abcd"

> plot(x,y, expression(sqrt(txt)))
I want txt to be evaluated, i. e. to get sqrt(abcd) plotted,
(with the square root symbol replacing sqrt, of course).
Is there a way to achieve this?

John Maindonald               email : john.maindonald at anu.edu.au        
Statistical Consulting Unit,  phone : (6249)3998        
c/o CMA, SMS,                 fax   : (6249)5549  
John Dedman Mathematical Sciences Building
Australian National University
Canberra ACT 0200
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list