[R] mtext: expressions in bold font

Matthew Wiener mcw at ln.nimh.nih.gov
Tue Mar 6 22:08:17 CET 2001


Hi, all.

I'm using mtext to put some labels in figure margins.  Several of these
labels are expressions, created with substitute:

mtext(substitute(h[x](t), list(x = paste("n", 1, sep = ","))), cex = 2,
font = 2, side = 4, line = 1, las = 1) 

I'm using this to get the subscripting (perhaps there's a better way to do
that?).

The problem is that the font argument seems to be ignored; that is, the h
looks the same as when using

mtext("h", cex = 2, font = 1, side = 4, line = 1, las = 1)
			  ^^^ 
Is this a feature?  A bug?  I've looked through the documentation (and the
bug tracker) and haven't found anything about this particular point.

Thanks,

Matt

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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