[R] mathematical expression in legend

Arne Mueller a.mueller at icrf.icnet.uk
Tue Mar 12 23:23:36 CET 2002


I'm trying to put a mathematical expression into a legend, but R
complains about a syntax error. Basically i'd like to do this:

legend.text = c(expression(x < 10), expression(x >= 10))

The manual says that one can only pass mathematical expressions to axis,
text etc. but not to the legend command?

Is there a workaround for this?

	thanks a lot for help,


Arne Mueller
Biomolecular Modelling Laboratory
Imperial Cancer Research Fund
44 Lincoln's Inn Fields
London WC2A 3PX, U.K.
phone : +44-(0)207 2693405      | fax :+44-(0)207-269-3534
email : a.mueller at icrf.icnet.uk | http://www.bmm.icnet.uk
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