Re: [R] legend with math (greek letters) symbols

2014-09-14 Thread William Dunlap
'q' should be an expression object, not a list of expression objects. Try defining 'q' as q <- as.expression(lapply(lambdas, function(l)bquote(lambda==.(l Bill Dunlap TIBCO Software wdunlap tibco.com On Sat, Sep 13, 2014 at 5:55 PM, Julio Sergio Santana wrote: > I need to add a legend w

Re: [R] legend with math (greek letters) symbols

2014-09-13 Thread David Winsemius
On Sep 13, 2014, at 5:55 PM, Julio Sergio Santana wrote: I need to add a legend with three entries that should contain a greek letter (lambda). I learnt that it is possible using the function expression. So I need to build the expressions from the lambdas vector, and I simply cannot do it. This

[R] legend with math (greek letters) symbols

2014-09-13 Thread Julio Sergio Santana
I need to add a legend with three entries that should contain a greek letter (lambda). I learnt that it is possible using the function expression. So I need to build the expressions from the lambdas vector, and I simply cannot do it. This is the uggly result I got: x <- 0:20 cc <- c("yellow