[R] Transparent backgrounds in png files

Patrick Connolly p.connolly at hortresearch.co.nz
Wed Jul 28 23:59:26 CEST 2004

The result I'm aiming to achieve is a bitmap that can be imported into
a PowerPoint file that shows what's behind the lines of the plot.
There's a way in PowerPoint that almost works.  By choosing a colour
to set as transparent, what is behind the graphic is indeed visible,
but it's at the expense of losing line and text definition.

I notice there have been discussions about transparent backgrounds
mostly with lattice plots.  The problem most people seem to have was
getting a blue background when they wanted a white one.

Mine is the reverse (and I'm using standard graphics, not Lattice).
I'm trying to get a transparent background but it always comes out
white.  Setting bg = "transparent", I've tried using a bitmap device
to create a png file.  I've also tried creating a postscript file and
converting it to a PNG file using the Gimp.  I've always used a
resolution of 300 dpi in bitmaps since the default is far too low.

Other ideas appreciated.

> version
platform i686-pc-linux-gnu
arch     i686             
os       linux-gnu        
system   i686, linux-gnu  
major    1                
minor    9.1              
year     2004             
month    06               
day      21               
language R                


Patrick Connolly
Mt Albert
New Zealand 
Ph: +64-9 815 4200 x 7188
I have the world`s largest collection of seashells. I keep it on all
the beaches of the world ... Perhaps you`ve seen it.  ---Steven Wright 

More information about the R-help mailing list