[R] How remove the small outline around R plots in LaTeX?

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Sep 2 14:19:38 CEST 2008

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 

An alternative is to use R's pdf() device, including using dev.copy2pdf.

On Mon, 1 Sep 2008, Kenneth Benoit wrote:

> 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
> ______________________________________________
> 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.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-help mailing list