Skip to content
Prev 172225 / 398506 Next

Bold Face in Plot

On Mon, 2 Mar 2009, Rau, Roland wrote:

            
See ?substitute (or its wrapper bquote)  E.g.
But, why are you setting plain text as an expression?  The better way 
to do this is

thestring <- "the-actual-string"
plot(0:1,0:1,type="n")
text(x=0.5, y=0.5, labels=thestring, font=2)

See ?par (and ?text).  There are subtle differences (e.g. how the 
baslines are aligned), and using plotmath when you do not need it will 
get you encountering those differences.