Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

[R] Don't understand plotmath behaviour (bug?)

Wladimir Eremeev

2005-07-25

Replies:

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.

Why?

Thank you very much for attention and explanations.

---
Best regards,
Wladimir           mailto:wl@(protected)

______________________________________________
R-help@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
©2008 r-help.com - Jax Systems, LLC, U.S.A.