[R] mtext / expression and font type of bold

2003-08-28 Thread Al Piszcz
mtext does not appear to be rendering a 'bold' expression.
Is there another parameter to set? Thx.

example (does not create bold (font=2) on plot)
  mtext( font=2, expression(paste(y, " = ",  x + z), side=3 )

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] mtext / expression and font type of bold

2003-08-29 Thread Uwe Ligges
Al Piszcz wrote:

mtext does not appear to be rendering a 'bold' expression.
Is there another parameter to set? Thx.
example (does not create bold (font=2) on plot)
  mtext( font=2, expression(paste(y, " = ",  x + z), side=3 )
Mathematical expressions are handled differently from normal text.

You might want to use
  mtext(expression(bold(y == x + z)), side = 3)
See ?plotmath for details.

Uwe Ligges

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help