Re: [R] Plot title with numeric variables

From: <>
Date: Tue 14 Nov 2006 - 20:42:25 GMT

The key thing is the function bquote().


> N <- 5
> xxx <- bquote(bold("Figure"~.(N)~"Plot"~C[max]~"versus CrCl"))
> plot(1:10,main=xxx)

(Not sure about the ``bold'' business, but R doesn't object.)

Or to take a simpler and clearer example:

> N <- 5
> plot(1:10,main=bquote("Figure"~.(N))


					Rolf Turner

______________________________________________ mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed Nov 15 07:48:33 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 15 Nov 2006 - 06:30:21 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.