Marc Schwartz <[EMAIL PROTECTED]> writes:

> Try this:
> 
>   cor2 <- 0.74
>   plot(1:5)
>   title(bquote(rho == .(cor2)))
> 
> See ?plotmath and ?bquote for more information, noting the use of
> the .(Variable) syntax for variable substitution.

Yep, bquote() is nice. Other solutions include

  substitute(rho == . , list( . = cor2))

which I suppose is pretty much what bquote does internally
-- 
   O__  ---- Peter Dalgaard             Ă˜ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - ([EMAIL PROTECTED])                  FAX: (+45) 35327907

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to