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 -- View this message in context: http://www.nabble.com/combine-mathematical-expressions-with-plain-text-tf4486503.html#a12793991 Sent from the R help mailing list archive at Nabble.com.
plot(0,0,"n") mtext( expression( bar(x) == 3.07) ) but you can also simply 'paste' things: text(0,0,labels=expression(paste(bar(omega), " = 1")),srt=90)
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