Skip to content

How remove the small outline around R plots in LaTeX?

2 messages · Kenneth Benoit, Brian Ripley

#
Dear R List,

I noticed something odd when I started saving R graphs in pdf format  
and including them in LaTeX documents using (e.g.)  
\includegraphics{mygraphic.pdf}.  A very thin dotted border is  
included in the LaTeX document around the graphic, and I cannot seem  
to make it go away.  I searched Google as well as the R list archives  
but could not find anything on this.  Note that this only seemed to  
start when I upgraded R to 2.6 or 2.7 -- I did not have the poblem  
before this.

I am using R 2.7.0 on Mac OS/X 10.5.4.

Any help greatly appreciated!

Ken

Kenneth Benoit
Professor of Quantitative Social Sciences
Head, Department of Political Science
Trinity College
Dublin 2, Ireland
http://kenbenoit.net
Tel: 353-1-896-2491
#
I think this is already fixed: please try the current version of R (see 
the posting guide).  It is specific to the R.app GUI, so R-sig-mac would 
be the appropriate list.  (I think this is somewhere in that list's 
archives.)

An alternative is to use R's pdf() device, including using dev.copy2pdf.
On Mon, 1 Sep 2008, Kenneth Benoit wrote: