[R] text() does not handle lists of expressions
Thomas Lumley
tlumley at u.washington.edu
Mon Apr 26 16:50:07 CEST 2004
On Mon, 26 Apr 2004, Tamas Papp wrote:
> So I have to use a loop for that. I cannot coerce lists of
> expressions to vectors, so in this case, I cannot exploit the feature
> of text() accepting x and y coordinates (and other things) as vectors.
An expression is already a vector in this sense
eg
plot(1:10)
text(c(4,2),c(2,4),labels=expression(a[1],b[2]))
-thomas
More information about the R-help
mailing list