On Tue, 14 Nov 2006, RMan54 wrote:

>
> This works for the original posted question:
>
> n<-5
> title <- bquote(bold(paste("Figure ", .(n), ": Plot ", C[max], " versus
> CrCl")))
> plot(1, main=title)
>
> However, my problem is that I want to define the text before the value of n
> is known.
> The idea is that the title is defined ahead, passed to a function that makes
> many plots, and n is incremented for each plot.


  pretitle <- quote(bold("Figure"~.(N)~"Plot"~C[max]~"versus CrCl"))

## later on inside a function
  N<-1
  title<-do.call(bquote,list(pretitle))

        -thomas

Thomas Lumley                   Assoc. Professor, Biostatistics
[EMAIL PROTECTED]       University of Washington, Seattle

______________________________________________
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.

Reply via email to