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" to appear. What then? Undoubtedly I'm missing something blindingly obvious with lists, but having tried several versions unsuccessfully I thought I would defer to the collective expertise of R-help. Thanks in advance. url: www.econ.uiuc.edu/~roger/my.html Roger Koenker email rkoenker at uiuc.edu Department of Economics vox: 217-333-4558 University of Illinois fax: 217-244-6678 Champaign, IL 61820
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