[R] bold AND italic as font in text()

Paul Murrell p.murrell at auckland.ac.nz
Tue Jul 22 04:04:46 CEST 2003


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/




More information about the R-help mailing list