[R] mixed fonts

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Oct 24 23:19:20 CEST 2001


"Sundar Dorai-Raj" <doraiss at auburn.edu> writes:

> Any way of mixing bold and plain fonts in text() (or mtext(), etc.)? I'm
> looking for a solution that doesn't require manually spacing two calls
> of text(). For example:
> 
> text(x=0,y=0,labels="bold(Figure 1.) plain(This is a picture.)")
> 
> where "Figure 1." is bold-faced and "This is a picture." is plain-faced.
> I've tried to trick plotmath into doing this but have been unsuccessful.

Didn't try hard enough:

plot(0,0)
text(x=0,y=0,labels=quote(bold("Figure 1. " )*"This is a picture."))


-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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