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. Thanks in advance. Sundar> version_ platform i386-pc-mingw32 arch x86 os Win32 system x86, Win32 status major 1 minor 3.0 year 2001 month 06 day 22 language R -- Sundar Dorai-Raj, Ph.D. Assistant Professor Discrete & Statistical Sciences Office: (334) 844-3647 231 Allison Lab Fax: (334) 844-3611 Auburn University Email: dorairaj at dms.auburn.edu Auburn AL 36849-5307 http://www.dms.auburn.edu/~dorairaj/ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
"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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._