[R] how to paste a vector to expression?

Kay Cichini Kay.Cichini at uibk.ac.at
Tue Aug 17 17:51:10 CEST 2010


hello,

i need to annotate a plot with an expression and a variable value - like:

plot(1:4)
dat<-1:2
text(2:3,2:3,expression(paste(bar(x)==dat)))


... but with the dat values plotted, 1 at x=2,y=2, and 2 at x=3,y=3.

maybe someone can help?

yours,
kay


-----
------------------------
Kay Cichini
Postgraduate student
Institute of Botany
Univ. of Innsbruck
------------------------

-- 
View this message in context: http://r.789695.n4.nabble.com/how-to-paste-a-vector-to-expression-tp2328564p2328564.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list