[R] Substitute in legend

partha_bagchi@hgsi.com partha_bagchi at hgsi.com
Fri Aug 22 21:11:38 CEST 2003

I tried to use substitute in legend as follows:

pval <- 0.04
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?

More information about the R-help mailing list