Re: [R] Plot title with numeric variables

From: <rolf_at_math.unb.ca>
Date: Tue 14 Nov 2006 - 20:42:25 GMT


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@math.unb.ca

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.