[R] title expressions

Thomas Lumley tlumley at u.washington.edu
Thu Sep 4 16:14:37 CEST 2003


On Thu, 4 Sep 2003, Roger Koenker wrote:

> The officially sanctioned way to put the expression "lambda_1 = x" in a title
> is something like this:
>
> 	title(substitute(lambda[1] == lamb, list(lamb = x)))
>
> but suppose I have two lambdas and would like something like
>
> 	"lambda_1 = x_1 , lambda_2 = x_2"
>

Assuming x_1 and x_2 mean two values, not subscripted values

   title(substitute(lambda[1]==x1*", "*lambda[2]==x2, list(x1=x1,x2=x2)))

In 1.8 you will be able to do

   title(bquote(lambda[1]==.(x1)*", "*lambda[2]==.(x2)))


	-thomas




More information about the R-help mailing list