Dear all, Is it possible to somshow plot text as italic AND bold. I tried font=c(2,3) in text(), but it doesn't work. It seems like the latter value is used. Thanks in advance! Sincerely, Tord ----------------------------------------------------------------------- Tord Sn?ll Avd. f v?xtekologi, Evolutionsbiologiskt centrum, Uppsala universitet Dept. of Plant Ecology, Evolutionary Biology Centre, Uppsala University Villav?gen 14 SE-752 36 Uppsala, Sweden Tel: 018-471 28 82 (int +46 18 471 28 82) (work) Tel: 018-25 71 33 (int +46 18 25 71 33) (home) Fax: 018-55 34 19 (int +46 18 55 34 19) (work) E-mail: Tord.Snall at ebc.uu.se Check this: http://www.vaxtbio.uu.se/resfold/snall.htm!
use text(, , expression(bold("what you want to write"))) Mahbub. --- Tord Snall <tord.snall at ebc.uu.se> wrote:> Dear all, > Is it possible to somshow plot text as italic AND > bold. I tried font=c(2,3) > in text(), but it doesn't work. It seems like the > latter value is used. > > > Thanks in advance! > > Sincerely, > Tord > > > >-----------------------------------------------------------------------> Tord Snäll > Avd. f växtekologi, Evolutionsbiologiskt centrum, > Uppsala universitet > Dept. of Plant Ecology, Evolutionary Biology Centre, > Uppsala University > Villavägen 14 > SE-752 36 Uppsala, Sweden > Tel: 018-471 28 82 (int +46 18 471 28 82) (work) > Tel: 018-25 71 33 (int +46 18 25 71 33) (home) > Fax: 018-55 34 19 (int +46 18 55 34 19) (work) > E-mail: Tord.Snall at ebc.uu.se > Check this: > http://www.vaxtbio.uu.se/resfold/snall.htm! > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Hi Tord Snall wrote:> Dear all, > Is it possible to somshow plot text as italic AND bold. I tried font=c(2,3) > in text(), but it doesn't work. It seems like the latter value is used.Looks like you want font=4. Try the following: plot(0:5, 0:5, type="n") text(1:4, 1:4, paste("font = ", 1:4), font=1:4, cex=3) [For mathematical annotation, you can use bolditalic(something).] Paul -- Dr Paul Murrell Department of Statistics The University of Auckland Private Bag 92019 Auckland New Zealand 64 9 3737599 x85392 paul at stat.auckland.ac.nz http://www.stat.auckland.ac.nz/~paul/