Skip to content
Prev 9065 / 398502 Next

math expressions

Hello R Users,

I am trying to use math expressions as the labels to dotplot. I have a
vector of string values, for example:

names<-c(x1^2, x2^2)

I am trying to do something like this:

dotplot(c(1,2), labels=expression(names))

I had hoped that expression(names) would return a vector of math expressions
which could be used as the labels. It doesn't. Is there any way to do this??

Thank you, 

Don Wingate.


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._