[R] mtext / expression and font type of bold
Uwe Ligges
ligges at statistik.uni-dortmund.de
Fri Aug 29 08:26:50 CEST 2003
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
More information about the R-help
mailing list