From: Thomas Lumley <tlumley_at_u.washington.edu>

Date: Tue 26 Jul 2005 - 07:40:45 EST

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 26 07:44:39 2005

Date: Tue 26 Jul 2005 - 07:40:45 EST

On Mon, 25 Jul 2005, Wladimir Eremeev wrote:

> Hello, all

*>
**> Please, consider the following pieces of code.
**>
**> 1.
**> v<-0.5
**> text(x=2,y=2,eval(substitute(expression(bold(S==V)),list(V=formatC(v,format="f",digits=2)))))
**>
**> This plots "S=0.5" in bold. Both "S" and "0.5" are bold.
**>
**> 2.
**> v<-0.5
**> text(x=2,y=2,eval(substitute(expression(bold(S==V)),list(V=round(v,2)))))
**>
**> Here, only "S" is bold, 0.5 is usual, non-bold.
**>
*

In case 1 you have the string "0.5", in case 2 you have the number 0.5.

text(x=2,y=2, quote(bold("0.5"==0.5))) shows what is happening.

-thomas

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 26 07:44:39 2005

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:34:01 EST
*