[R] Help using expression

Anders Nielsen anielsen at math.ku.dk
Wed Aug 9 04:13:22 CEST 2000

Dear R users

I am doing a series of plots and I want the titles to be
expressions controlled by a loop. I believe the problem
can be isolated to:

The plot I want can be produced with:

plot(5, main=expression(alpha[1992]))

But why can't I do something this?

plot(5, main=expression(paste("alpha[",i,"]",sep="")))

I have tried other wrong combinations of paste
and expression. What is the right one?

Any help will be greatly appreciated


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

More information about the R-help mailing list