[R] Words appear to be bolded in the PDF output

Patrick Connolly p_connolly at slingshot.co.nz
Tue Apr 20 12:47:12 CEST 2010

On Mon, 19-Apr-2010 at 10:54PM -0800, chrisli1223 wrote:

|> Hi all,
|> I have written a note near each of my graphs using mtext.
|> mtext(text,side=1,line=4,cex=0.5,adj=0)
|> Then I have exported the graphs as a PDF file.
|> pdf(file=name,paper='a4',width=7.27,height=10.69)

That seems backwards to me.  I'd begin with the pdf() call, then do the
plot, then dev.off().  Maybe that's what you meant: if not, I've no
idea what you did.

|> The mtext appears OK in R. But it looks like it is bolded in the PDF file.
|> http://n4.nabble.com/file/n2016971/graph.png 

That's a fairly low res png file, not a pdf file, but even so, it
doesn't look like font = 2 to me.  It's a considerably larger cex
value than the other text, but it's still not bold.

|> I am not sure if this is actually my monitor/computer's
|> problem. But I want to see if it can be fixed in R.

Decide after seeing what it looks like printed.

|> Many thanks,
|> Chris
|> -- 
|> View this message in context: http://n4.nabble.com/Words-appear-to-be-bolded-in-the-PDF-output-tp2016971p2016971.html
|> Sent from the R help mailing list archive at Nabble.com.
|> 	[[alternative HTML version deleted]]
|> ______________________________________________
|> R-help at r-project.org mailing list
|> https://stat.ethz.ch/mailman/listinfo/r-help
|> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
|> and provide commented, minimal, self-contained, reproducible code.

   ___    Patrick Connolly   
 {~._.~}                   Great minds discuss ideas    
 _( Y )_  	         Average minds discuss events 
(:_~*~_:)                  Small minds discuss people  
 (_)-(_)  	                      ..... Eleanor Roosevelt

More information about the R-help mailing list