Dear R-helpers, I need to insert an R (2.6.0) generated plot containing semi-transparent colors into PowerPoint (2002). When I directly paste it from the clipboard or insert it as (enhanced) Metafile (I'm on Windows XP) the semi-transparent colors don't show. When I insert it at as a Bmp, Png or Jpeg and then convert to PDF the semitransparent colors do show but the quality of the image is not good enough when I zoom in at say 300% (I'm making a poster for a meeting so being able to scale up is crucial) Any suggestions? You can download the PDF file containing the four images corresponding to the original Png, emf, Bmp, and Jpeg formats from http://www.4shared.com/dir/4240403/ce1af03d/sharing.html Also, 1) for the emf generated image look at the little circles at the bottom of each boxplot: the fill color has bled out. Why? 2) From the console menu I cannot save a plot as PDF (no file is saved when I try)
Juan Lewinger <lewinger <at> usc.edu> writes:> Also, 1) for the emf generated image look at the little circles at thebottom of each boxplot: the fill color> has bled out. Why? > 2) From the console menu I cannot save a plot as PDF (no file is saved whenI try) In re to 2) I didn't mention (sorry, didn't realize) that I was getting the following error message when trying to save as PDF from the console: Error: Invalid font type In addition: Warning messages: 1: font family not found in PostScript font database 2: font family not found in PostScript font database Juan Pablo Lewinger Department of Preventive Medicine Keck School of Medicine University of Southern California
> Any suggestions?When generating a bitmap (png is then the best solution) you can control the resolution with "width" and "height" parameters (in pixels): png("myimage.png",width=1800,height=1800) Then you just need to raster yor graph in an adequate resolution (more pixels means bigger file, of course). But I think the best strategy overall would be to plot in a vectorial format such as pdf or eps, which are not dependent from the resolution (although you should provide the *dimension* of the plot in inches, with the same criteria).