[R] Plot title with numeric variables

rolf at math.unb.ca rolf at math.unb.ca
Tue Nov 14 21:42:25 CET 2006


The key thing is the function bquote().

E.g.

	> 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))


				cheers,

					Rolf Turner
					rolf at math.unb.ca



More information about the R-help mailing list