[R] Variable value in expression (plotmath)

Dirk F. Raetzel raetzel at Mathematik.Uni-Marburg.de
Tue Sep 12 17:36:15 CEST 2000


I have a problem with the plotmath facility and haven't found any solution
in the FAQ and Online-Help.

I am trying to incorporate the value of a variable in an expression for an
axis with plotmath.

Considering having

> gamma <- 10

I'd like to have a plot with

> plot( .... , xlab=expression(gamma==10))

but depending on the true value of the variable.

How can I achieve this? I tried some combinations of paste(),
as.expression(), c() and some other stuff, but didn't succeed.

Thanks for any help.


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