[R] combine mathematical expressions with plain text

Fernando Mayer fernandomayer at gmail.com
Thu Sep 20 13:42:25 CEST 2007


Hi,

have you tried:

mtext(expression(bar(x) == 3.07), ...)

or

mtext(bquote(bar(x) == 3.07), ...)

?

Fernando Mayer.

squall44 escreveu:
> Hello,
> 
> I would like to create a mtext. The argument 'text' should combine the
> mathematical expressions 'bar' with the plain text ' = 3.07'. Is that
> possible?
> 
> mtext(text=expression(bar(x)) ...)
> ' = 3.07'
> 
> Thanks for any ideas
> Tobias



More information about the R-help mailing list