[R] greek letters and deparsing in title

Thomas Lumley thomas at biostat.washington.edu
Sat Oct 23 22:10:27 CEST 1999

On Sat, 23 Oct 1999, ramon diaz-uriarte wrote:

> Dear All,
> In the title of a plot, I would like to mix greek letters with numbers, where
> the numbers are obtained from a particular function to a vector (e.g., max(x));
> in each call, the value of this vector can change.
> Without greek symbols I use something like:
> title(sub=paste("x1=", deparse(x[1]),"beta = ",deparse(max(x)), "rho = ",
> deparse(min(x)))) 
> but I'd like beta and rho to show up as greek letters.

Try eg
R> x<-rnorm(100)
R> plot(x,main=substitute(beta==t,list(t=max(x))))

Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle

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