Skip to content
Prev 1897 / 398506 Next

r-help[Q]: use of `expression' in annotation

Alex Buerkle <cbuerkle at bio.indiana.edu> writes:
Consider the following:

plot(0:11,type='n')
for (x in 1:10) 
   text(x,x,as.expression(substitute(r[rho*p] == peti,list(peti=x/10))))

[which probably also indicates that the as.char.or.expr() function
used inside text() could use modification! The as.expression bit
should be avoidable on objects of mode call.]