Re: [R] Substitute in legend

2003-08-23 Thread Uwe Ligges
Peter Dalgaard BSA wrote: [EMAIL PROTECTED] writes: I tried to use substitute in legend as follows: pval - 0.04 plot(0) legend(1,0.5,substitute(hat(theta) == p, list(p = pval))) For some reason the legend is repeated 3 times. Any suggestions or is this a bug? It's a bug. The code is

[R] Substitute in legend

2003-08-22 Thread partha_bagchi
I tried to use substitute in legend as follows: pval - 0.04 plot(0) legend(1,0.5,substitute(hat(theta) == p, list(p = pval))) For some reason the legend is repeated 3 times. Any suggestions or is this a bug? __ [EMAIL PROTECTED] mailing list

Re: [R] Substitute in legend

2003-08-22 Thread Peter Dalgaard BSA
[EMAIL PROTECTED] writes: I tried to use substitute in legend as follows: pval - 0.04 plot(0) legend(1,0.5,substitute(hat(theta) == p, list(p = pval))) For some reason the legend is repeated 3 times. Any suggestions or is this a bug? It's a bug. The code is looking at

Re: [R] Substitute in legend

2003-08-22 Thread Deepayan Sarkar
On Friday 22 August 2003 16:35, Peter Dalgaard BSA wrote: [EMAIL PROTECTED] writes: I tried to use substitute in legend as follows: pval - 0.04 plot(0) legend(1,0.5,substitute(hat(theta) == p, list(p = pval))) For some reason the legend is repeated 3 times. Any suggestions or is

Re: [R] Substitute in legend

2003-08-22 Thread Peter Dalgaard BSA
Deepayan Sarkar [EMAIL PROTECTED] writes: legend(1,0.5,as.expression(substitute(hat(theta) == p, list(p = pval Just out of curiosity: ?legend says legend: a vector of text values or an 'expression' of length = 1 to appear in the legend. Is an object of mode call

Re: [R] Substitute in legend

2003-08-22 Thread Thomas Lumley
On Fri, 22 Aug 2003, Deepayan Sarkar wrote: Just out of curiosity: ?legend says legend: a vector of text values or an 'expression' of length = 1 to appear in the legend. Is an object of mode call either ? (is.expression() returns FALSE.) Are they expected to work wherever