Re: [R] PowerPoint - eps not suitable
On Fri, Jun 23, 2006 at 01:43:54PM -0500, Marc Schwartz (via MN) wrote: On Fri, 2006-06-23 at 14:02 -0400, Michael H. Prager wrote: Previous posters have argued for EPS files as a desirable transfer format for quality reasons. This is of course true when the output is through a Postscript device. However, the original poster is making presentations with PowerPoint. Those essentially are projected from the screen -- and screens of Windows PCs are NOT Postscript devices. The version of PowerPoint I have will display a bitmapped, low-resolution preview when EPS is imported, and that is what will be projected. It is passable, but much better can be done! In this application, I have had best results using cut and paste or the Windows metafile format, both of which (as others have said) give scalable vector graphics. When quirks of Windows metafile arise (as they can do, especially when fonts differ between PCs), I have had good results with PNG for line art and JPG for other art. Mike Just so that it is covered (though this has been noted in other threads), even in this situation, one can still use EPS files embedded in PowerPoint (or Impress) presentations. Just to cover yet another possible route, I've in the past used ghostscript to produce high resolution (or, more generally, whatever resolution was required) raster images from PostScript by something like gs -r150x150 -sDEVICE=bmp256 -sOutputFile=x.bmp -dNOPAUSE myfile.ps -c quit Apologies if this has been mentioned in this thread already. Best regards, Jan -- +- Jan T. Kim ---+ | email: [EMAIL PROTECTED] | | WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical systems are for files, not for humans =-* __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint - eps not suitable
On 6/26/06, Jan T. Kim [EMAIL PROTECTED] wrote: On Fri, Jun 23, 2006 at 01:43:54PM -0500, Marc Schwartz (via MN) wrote: On Fri, 2006-06-23 at 14:02 -0400, Michael H. Prager wrote: Previous posters have argued for EPS files as a desirable transfer format for quality reasons. This is of course true when the output is through a Postscript device. However, the original poster is making presentations with PowerPoint. Those essentially are projected from the screen -- and screens of Windows PCs are NOT Postscript devices. The version of PowerPoint I have will display a bitmapped, low-resolution preview when EPS is imported, and that is what will be projected. It is passable, but much better can be done! In this application, I have had best results using cut and paste or the Windows metafile format, both of which (as others have said) give scalable vector graphics. When quirks of Windows metafile arise (as they can do, especially when fonts differ between PCs), I have had good results with PNG for line art and JPG for other art. Mike Just so that it is covered (though this has been noted in other threads), even in this situation, one can still use EPS files embedded in PowerPoint (or Impress) presentations. Just to cover yet another possible route, I've in the past used ghostscript to produce high resolution (or, more generally, whatever resolution was required) raster images from PostScript by something like gs -r150x150 -sDEVICE=bmp256 -sOutputFile=x.bmp -dNOPAUSE myfile.ps -c quit Apologies if this has been mentioned in this thread already. Best regards, Jan -- +- Jan T. Kim ---+ | email: [EMAIL PROTECTED] | | WWW: http://www.cmp.uea.ac.uk/people/jtk | *-= hierarchical systems are for files, not for humans =-* Useful in this regard on Windows XP, is withgs.bat in batchfiles. It will locate ghostscript on your system (using the registry), temporarily add it to your path and then run its argument as a command. withgs.bat can be placed anywhere in your path. Google for: CRAN batchfiles __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] PowerPoint
Dear All, I am looking for the best way to use graphs from R (like xyplot, curve ...) for a presentation with powerpoint. I used to save my plot as pdf and after to copy them as image in powerpoint but the quality is not optimal by so doing. Another completely independent question is the following: when I use main in the xyplot, the main title is very close to my plot, i.e. no ligne separate the main and the plot. I would like my title to be well distinguished from the plots. I would be grateful for any improvements... Many thanks, Bernard, - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint
Use the functions in library(grDevices) for jpeg, bmp, or png formats. Or, you can use postscript() for an eps file. Of course, I personally think tex files make for much better looking presentations if you can be persuaded. Harold -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Bernard Sent: Friday, June 23, 2006 7:28 AM To: r-help@stat.math.ethz.ch Subject: [R] PowerPoint Dear All, I am looking for the best way to use graphs from R (like xyplot, curve ...) for a presentation with powerpoint. I used to save my plot as pdf and after to copy them as image in powerpoint but the quality is not optimal by so doing. Another completely independent question is the following: when I use main in the xyplot, the main title is very close to my plot, i.e. no ligne separate the main and the plot. I would like my title to be well distinguished from the plots. I would be grateful for any improvements... Many thanks, Bernard, - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint
Note that jpg, bmp and png are in less desirable bit mapped formats whereas eps is in a more desirable vector format (magnification and shrinking does not involve loss of info) and so would be preferable from a quality viewpoint. See: http://www.stc-saz.org/resources/0203_graphics.pdf On 6/23/06, Doran, Harold [EMAIL PROTECTED] wrote: Use the functions in library(grDevices) for jpeg, bmp, or png formats. Or, you can use postscript() for an eps file. Of course, I personally think tex files make for much better looking presentations if you can be persuaded. Harold -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Bernard Sent: Friday, June 23, 2006 7:28 AM To: r-help@stat.math.ethz.ch Subject: [R] PowerPoint Dear All, I am looking for the best way to use graphs from R (like xyplot, curve ...) for a presentation with powerpoint. I used to save my plot as pdf and after to copy them as image in powerpoint but the quality is not optimal by so doing. Another completely independent question is the following: when I use main in the xyplot, the main title is very close to my plot, i.e. no ligne separate the main and the plot. I would like my title to be well distinguished from the plots. I would be grateful for any improvements... Many thanks, Bernard, - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint
Bernard, there are some things that affect your graphs in MS Powerpoint like the formats you save and include them. You should consider test the various combinations. You should test the final presentation on the chosen presentation device 'cause there's some resolution variation there too. I use to save a .jpg format since I can control and test some resolution levels and include as image. For your main title, it's better you supply the group with some code in order we can help you more. HTH, Rogerio Porto. -- Cabeçalho original --- De: [EMAIL PROTECTED] Para: r-help@stat.math.ethz.ch Cópia: Data: Fri, 23 Jun 2006 13:28:07 +0200 (CEST) Assunto: [R] PowerPoint Dear All, I am looking for the best way to use graphs from R (like xyplot, curve ...) for a presentation with powerpoint. I used to save my plot as pdf and after to copy them as image in powerpoint but the quality is not optimal by so doing. Another completely independent question is the following: when I use main in the xyplot, the main title is very close to my plot, i.e. no ligne separate the main and the plot. I would like my title to be well distinguished from the plots. I would be grateful for any improvements... Many thanks, Bernard, - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint
or try win.metafile() if i'm in a hurry, (in windows) i just right click on the graph and select Copy as Metafile and paste directly into powerpoint... Sean On 23/06/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: Note that jpg, bmp and png are in less desirable bit mapped formats whereas eps is in a more desirable vector format (magnification and shrinking does not involve loss of info) and so would be preferable from a quality viewpoint. See: http://www.stc-saz.org/resources/0203_graphics.pdf On 6/23/06, Doran, Harold [EMAIL PROTECTED] wrote: Use the functions in library(grDevices) for jpeg, bmp, or png formats. Or, you can use postscript() for an eps file. Of course, I personally think tex files make for much better looking presentations if you can be persuaded. Harold -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Bernard Sent: Friday, June 23, 2006 7:28 AM To: r-help@stat.math.ethz.ch Subject: [R] PowerPoint Dear All, I am looking for the best way to use graphs from R (like xyplot, curve ...) for a presentation with powerpoint. I used to save my plot as pdf and after to copy them as image in powerpoint but the quality is not optimal by so doing. Another completely independent question is the following: when I use main in the xyplot, the main title is very close to my plot, i.e. no ligne separate the main and the plot. I would like my title to be well distinguished from the plots. I would be grateful for any improvements... Many thanks, Bernard, - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint
Dear Bernard, if you use MS Powerpoint, it seems likely to me that you are using the Windows version of R. Are you aware of the fact, that you can just right-click on any graph and copy it to the clipboard (copy as metafile or similar). That way you get a vectorized version of the graph, which you can nicely paste into Powerpoint and edit. Johannes * Marc Bernard [EMAIL PROTECTED] [060623 13:40]: Dear All, I am looking for the best way to use graphs from R (like xyplot, curve ...) for a presentation with powerpoint. I used to save my plot as pdf and after to copy them as image in powerpoint but the quality is not optimal by so doing. Another completely independent question is the following: when I use main in the xyplot, the main title is very close to my plot, i.e. no ligne separate the main and the plot. I would like my title to be well distinguished from the plots. I would be grateful for any improvements... Many thanks, Bernard, - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Dr. Johannes Ranke [EMAIL PROTECTED] UFT Bremen, Leobenerstr. 1 +49 421 218 8971 D-28359 Bremen http://www.uft.uni-bremen.de/chemie/ranke __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint
Hi, all, (Sorry to highjack the thread, but I think the OP should also know this) One of the plots Marc mentions is xyplot. Has anybody else on this list had a problem with lattice and win.metafile (or Ctrl-W in the R graphics device)? I will sometimes import wmf files (or Ctrl-V) with lattice graphics into powerpoint and notice some of the border lines are missing. I can re-size the plot to make the lines reappear but have to find just the right size to make it look right. This seems to be a problem with PPT, XLS, and Word. I never have this problem with traditional graphics (e.g. plot.default, etc.). I'm using Windows XP Pro with R-2.3.1 and lattice-0.13.8, though I've also experienced the problem on earlier versions of R and earlier versions of lattice. Thanks, --sundar Johannes Ranke wrote: Dear Bernard, if you use MS Powerpoint, it seems likely to me that you are using the Windows version of R. Are you aware of the fact, that you can just right-click on any graph and copy it to the clipboard (copy as metafile or similar). That way you get a vectorized version of the graph, which you can nicely paste into Powerpoint and edit. Johannes * Marc Bernard [EMAIL PROTECTED] [060623 13:40]: Dear All, I am looking for the best way to use graphs from R (like xyplot, curve ...) for a presentation with powerpoint. I used to save my plot as pdf and after to copy them as image in powerpoint but the quality is not optimal by so doing. Another completely independent question is the following: when I use main in the xyplot, the main title is very close to my plot, i.e. no ligne separate the main and the plot. I would like my title to be well distinguished from the plots. I would be grateful for any improvements... Many thanks, Bernard, - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint
I've always assumed that this was a rendering problem in the MS application, as the reappearance of the missing lines on re-sizing shows that that the necessary information **is** in the imported .wmf file, right? -- Bert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sundar Dorai-Raj Sent: Friday, June 23, 2006 7:55 AM To: Johannes Ranke Cc: r-help@stat.math.ethz.ch; Marc Bernard Subject: Re: [R] PowerPoint Hi, all, (Sorry to highjack the thread, but I think the OP should also know this) One of the plots Marc mentions is xyplot. Has anybody else on this list had a problem with lattice and win.metafile (or Ctrl-W in the R graphics device)? I will sometimes import wmf files (or Ctrl-V) with lattice graphics into powerpoint and notice some of the border lines are missing. I can re-size the plot to make the lines reappear but have to find just the right size to make it look right. This seems to be a problem with PPT, XLS, and Word. I never have this problem with traditional graphics (e.g. plot.default, etc.). I'm using Windows XP Pro with R-2.3.1 and lattice-0.13.8, though I've also experienced the problem on earlier versions of R and earlier versions of lattice. Thanks, --sundar Johannes Ranke wrote: Dear Bernard, if you use MS Powerpoint, it seems likely to me that you are using the Windows version of R. Are you aware of the fact, that you can just right-click on any graph and copy it to the clipboard (copy as metafile or similar). That way you get a vectorized version of the graph, which you can nicely paste into Powerpoint and edit. Johannes * Marc Bernard [EMAIL PROTECTED] [060623 13:40]: Dear All, I am looking for the best way to use graphs from R (like xyplot, curve ...) for a presentation with powerpoint. I used to save my plot as pdf and after to copy them as image in powerpoint but the quality is not optimal by so doing. Another completely independent question is the following: when I use main in the xyplot, the main title is very close to my plot, i.e. no ligne separate the main and the plot. I would like my title to be well distinguished from the plots. I would be grateful for any improvements... Many thanks, Bernard, - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint
Hi, Bert, Yes, this is true. However, it seems only to be a problem with lattice graphics and not traditional. So I am confused as to why there is a difference. Thanks, --sundar Berton Gunter wrote: I've always assumed that this was a rendering problem in the MS application, as the reappearance of the missing lines on re-sizing shows that that the necessary information **is** in the imported .wmf file, right? -- Bert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sundar Dorai-Raj Sent: Friday, June 23, 2006 7:55 AM To: Johannes Ranke Cc: r-help@stat.math.ethz.ch; Marc Bernard Subject: Re: [R] PowerPoint Hi, all, (Sorry to highjack the thread, but I think the OP should also know this) One of the plots Marc mentions is xyplot. Has anybody else on this list had a problem with lattice and win.metafile (or Ctrl-W in the R graphics device)? I will sometimes import wmf files (or Ctrl-V) with lattice graphics into powerpoint and notice some of the border lines are missing. I can re-size the plot to make the lines reappear but have to find just the right size to make it look right. This seems to be a problem with PPT, XLS, and Word. I never have this problem with traditional graphics (e.g. plot.default, etc.). I'm using Windows XP Pro with R-2.3.1 and lattice-0.13.8, though I've also experienced the problem on earlier versions of R and earlier versions of lattice. Thanks, --sundar Johannes Ranke wrote: Dear Bernard, if you use MS Powerpoint, it seems likely to me that you are using the Windows version of R. Are you aware of the fact, that you can just right-click on any graph and copy it to the clipboard (copy as metafile or similar). That way you get a vectorized version of the graph, which you can nicely paste into Powerpoint and edit. Johannes * Marc Bernard [EMAIL PROTECTED] [060623 13:40]: Dear All, I am looking for the best way to use graphs from R (like xyplot, curve ...) for a presentation with powerpoint. I used to save my plot as pdf and after to copy them as image in powerpoint but the quality is not optimal by so doing. Another completely independent question is the following: when I use main in the xyplot, the main title is very close to my plot, i.e. no ligne separate the main and the plot. I would like my title to be well distinguished from the plots. I would be grateful for any improvements... Many thanks, Bernard, - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint
Has anyone tried this with OO.org's Impress or Writer on Windows to see if the same behavior occurs? My recollection from prior experience on Windows (it's been a while) is that a subtle resize takes place when pasting/importing graphics into the aforementioned apps. You can right click on the graphic in the app and then select Original Size or something worded similarly on the graphic object formatting dialog window. Not sure if that is enough to get the lines back or if one has to go slightly larger than the original size to resolve the issue. It also seems to me that there was some behavior on the R Windows graphic device relative to re-sizing the plot region and then doing the metafile copy and paste, but it has been long enough that my memory may not be intact (which my wife would suggest anyway ;-). HTH, Marc Schwartz On Fri, 2006-06-23 at 08:08 -0700, Berton Gunter wrote: I've always assumed that this was a rendering problem in the MS application, as the reappearance of the missing lines on re-sizing shows that that the necessary information **is** in the imported .wmf file, right? -- Bert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sundar Dorai-Raj Sent: Friday, June 23, 2006 7:55 AM To: Johannes Ranke Cc: r-help@stat.math.ethz.ch; Marc Bernard Subject: Re: [R] PowerPoint Hi, all, (Sorry to highjack the thread, but I think the OP should also know this) One of the plots Marc mentions is xyplot. Has anybody else on this list had a problem with lattice and win.metafile (or Ctrl-W in the R graphics device)? I will sometimes import wmf files (or Ctrl-V) with lattice graphics into powerpoint and notice some of the border lines are missing. I can re-size the plot to make the lines reappear but have to find just the right size to make it look right. This seems to be a problem with PPT, XLS, and Word. I never have this problem with traditional graphics (e.g. plot.default, etc.). I'm using Windows XP Pro with R-2.3.1 and lattice-0.13.8, though I've also experienced the problem on earlier versions of R and earlier versions of lattice. Thanks, --sundar Johannes Ranke wrote: Dear Bernard, if you use MS Powerpoint, it seems likely to me that you are using the Windows version of R. Are you aware of the fact, that you can just right-click on any graph and copy it to the clipboard (copy as metafile or similar). That way you get a vectorized version of the graph, which you can nicely paste into Powerpoint and edit. Johannes * Marc Bernard [EMAIL PROTECTED] [060623 13:40]: Dear All, I am looking for the best way to use graphs from R (like xyplot, curve ...) for a presentation with powerpoint. I used to save my plot as pdf and after to copy them as image in powerpoint but the quality is not optimal by so doing. Another completely independent question is the following: when I use main in the xyplot, the main title is very close to my plot, i.e. no ligne separate the main and the plot. I would like my title to be well distinguished from the plots. I would be grateful for any improvements... Many thanks, Bernard, __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint
On Fri, Jun 23, 2006 at 09:21:37AM -0400, Gabor Grothendieck wrote: Note that jpg, bmp and png are in less desirable bit mapped formats whereas eps is in a more desirable vector format (magnification and shrinking does not involve loss of info) and so would be preferable from a quality viewpoint. In addition to seconding the above statement I'd like to add that in cases where you are forced to use a bitmap format png tends to produce much better results than jpg where line drawings (e.g. most plots) are concerned. JPG format on the other hand is great for anyting which can be discirbed as photography-like. jpg images of plots tend to suffer from bad artifacts... cu Philipp -- Dr. Philipp PagelTel. +49-8161-71 2131 Dept. of Genome Oriented Bioinformatics Fax. +49-8161-71 2186 Technical University of Munich Science Center Weihenstephan 85350 Freising, Germany and Institute for Bioinformatics / MIPS Tel. +49-89-3187 3675 GSF - National Research Center Fax. +49-89-3187 3585 for Environment and Health Ingolstädter Landstrasse 1 85764 Neuherberg, Germany http://mips.gsf.de/staff/pagel __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint
On Fri, 2006-06-23 at 18:16 +0200, Philipp Pagel wrote: On Fri, Jun 23, 2006 at 09:21:37AM -0400, Gabor Grothendieck wrote: Note that jpg, bmp and png are in less desirable bit mapped formats whereas eps is in a more desirable vector format (magnification and shrinking does not involve loss of info) and so would be preferable from a quality viewpoint. In addition to seconding the above statement I'd like to add that in cases where you are forced to use a bitmap format png tends to produce much better results than jpg where line drawings (e.g. most plots) are concerned. JPG format on the other hand is great for anyting which can be discirbed as photography-like. jpg images of plots tend to suffer from bad artifacts... cu Philipp That is generally because png files are not compressed, whereas jpg files are. The compression algorithms that are typically used are lossy, which means that you give up image quality in order to gain the reduction in file size. The greater the compression you use, the greater the loss in image quality. Yet another reason to use EPS for plots. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint
Most useful: the Ungroup command in ppt lets you take apart the graph when you insert it as wmf. I often resort to that when I want to change labels / fonts / colours etc. Very flexible. -- View this message in context: http://www.nabble.com/PowerPoint-t1835745.html#a5016074 Sent from the R help forum at Nabble.com. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint
On Fri, Jun 23, 2006 at 11:27:00AM -0500, Marc Schwartz (via MN) wrote: On Fri, 2006-06-23 at 18:16 +0200, Philipp Pagel wrote: On Fri, Jun 23, 2006 at 09:21:37AM -0400, Gabor Grothendieck wrote: Note that jpg, bmp and png are in less desirable bit mapped formats whereas eps is in a more desirable vector format (magnification and shrinking does not involve loss of info) and so would be preferable from a quality viewpoint. In addition to seconding the above statement I'd like to add that in cases where you are forced to use a bitmap format png tends to produce much better results than jpg where line drawings (e.g. most plots) are concerned. JPG format on the other hand is great for anyting which can be discirbed as photography-like. jpg images of plots tend to suffer from bad artifacts... That is generally because png files are not compressed, whereas jpg files are. In fact, png uses a combination of pre-filtering and lossless compression (in contrast to lossy compression algortihms use in jpg). Of course, lossy compression can achieve much smaller file sizes for most images. While even a substantial loss of information can go undetected by the observer in the case of photographic images with no sharp edges, line drawings suffer badly. Line drawings usually contain vast percentages of empty space (i.e. white) and thus can be compressed quite effectively by the pre-filteing/lossless compression used by png. Anyway - I totally agree that eps rules and pixel formats should be avoided at all cost for illustrations, plots, etc. ... cu Philipp -- Dr. Philipp PagelTel. +49-8161-71 2131 Dept. of Genome Oriented Bioinformatics Fax. +49-8161-71 2186 Technical University of Munich Science Center Weihenstephan 85350 Freising, Germany and Institute for Bioinformatics / MIPS Tel. +49-89-3187 3675 GSF - National Research Center Fax. +49-89-3187 3585 for Environment and Health Ingolstädter Landstrasse 1 85764 Neuherberg, Germany http://mips.gsf.de/staff/pagel __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint - eps not suitable
I think I was just comparing the ones that were discussed but certainly the vector format used on Windows is normally emf or wmf and that is what I would normally use too. On 6/23/06, Michael H. Prager [EMAIL PROTECTED] wrote: Previous posters have argued for EPS files as a desirable transfer format for quality reasons. This is of course true when the output is through a Postscript device. However, the original poster is making presentations with PowerPoint. Those essentially are projected from the screen -- and screens of Windows PCs are NOT Postscript devices. The version of PowerPoint I have will display a bitmapped, low-resolution preview when EPS is imported, and that is what will be projected. It is passable, but much better can be done! In this application, I have had best results using cut and paste or the Windows metafile format, both of which (as others have said) give scalable vector graphics. When quirks of Windows metafile arise (as they can do, especially when fonts differ between PCs), I have had good results with PNG for line art and JPG for other art. Mike -- Michael Prager, Ph.D. Southeast Fisheries Science Center NOAA Center for Coastal Fisheries and Habitat Research Beaufort, North Carolina 28516 ** Opinions expressed are personal, not official. No ** official endorsement of any product is made or implied. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint - eps not suitable
On Fri, 2006-06-23 at 14:02 -0400, Michael H. Prager wrote: Previous posters have argued for EPS files as a desirable transfer format for quality reasons. This is of course true when the output is through a Postscript device. However, the original poster is making presentations with PowerPoint. Those essentially are projected from the screen -- and screens of Windows PCs are NOT Postscript devices. The version of PowerPoint I have will display a bitmapped, low-resolution preview when EPS is imported, and that is what will be projected. It is passable, but much better can be done! In this application, I have had best results using cut and paste or the Windows metafile format, both of which (as others have said) give scalable vector graphics. When quirks of Windows metafile arise (as they can do, especially when fonts differ between PCs), I have had good results with PNG for line art and JPG for other art. Mike Just so that it is covered (though this has been noted in other threads), even in this situation, one can still use EPS files embedded in PowerPoint (or Impress) presentations. The scenario is to print out the PowerPoint presentation to a Postscript file (using a PS printer driver). If you have Ghostscript installed, you can then use ps2pdf to convert the PS file to a PDF file. If you have OO.org, there is a Distiller type of printer driver called PDF Converter (configured via the printer admin program) available, which you can use to go directly to a PDF in a single step. This also uses Ghostscript (-sDEVICE=pdfwrite) as an intermediary (though hidden from the user) step. The standard OO.org PDF export mechanism (using the toolbar icon) only exports the bitmapped preview, not the native EPS image. This is what you see as the preview image in these Office type of apps by default. Most PDF file viewers (Acrobat, xpdf, Evince, etc.) have a full screen mode, whereby you can the use the viewer to display the presentation in a landscape orientation to an audience. I have done this frequently (under Linux with OO.org) to facilitate presentations, when for any number of reasons, using LaTeX (ie. Beamer) was not practical. Even when using Beamer, the net result is still the same: creating a PDF file via pdflatex, which is then displayed landscape in a PDF rendering application full screen. This was the typical mode of operation at last week's useR! meeting in Vienna. All that being said, the ultimate test is in the eye of the user. So whatever gives you sufficient quality for your application with minimal hassle is the way to go. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint
Hello, IMHO, for the printer 1 - The best choice of graphics format is postscript ( PS ) in Microsoft ( M$ ), since you install the M$ Convert Pack [1]! Make a preview in PS file with EMF format! use epstool for this 2 - Enhanced MetaFile ( EMF ) in M$ and OpenOffice ( OOo) is not the same... This can be a problem! See pstoedit page [2] 3 - In OOo, I use the EPS file with the follow procedure: - save my graphic in PS - make to use de EPSTOOL for to produce EPS ( ps with tiff preview ) - preview is a tiff graphic with low quality *note: emf can be also to included for preview - I need a PS-printer... in the case of NO-ps-printer, the tiff (low quality) will be printed! { :-( }, then, I make a PDF final report with ExtendendPDF! - this procedure also work in the M$-Word HTH, Cleber N. Borges {klebyn} --- [1] - http://www.microsoft.com/downloads/details.aspx?FamilyID=cf196df0-70e5-4595-8a98-370278f40c57DisplayLang=en [2] - http://www.pstoedit.net/pstoedit [3] - http://www.3bview.com/epdf-home.html Marc Bernard wrote: Dear All, I am looking for the best way to use graphs from R (like xyplot, curve ...) for a presentation with powerpoint. I used to save my plot as pdf and after to copy them as image in powerpoint but the quality is not optimal by so doing. Another completely independent question is the following: when I use main in the xyplot, the main title is very close to my plot, i.e. no ligne separate the main and the plot. I would like my title to be well distinguished from the plots. I would be grateful for any improvements... Many thanks, Bernard, - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html . __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint - eps not suitable
Previous posters have argued for EPS files as a desirable transfer format for quality reasons. This is of course true when the output is through a Postscript device. However, the original poster is making presentations with PowerPoint. Those essentially are projected from the screen -- and screens of Windows PCs are NOT Postscript devices. The version of PowerPoint I have will display a bitmapped, low-resolution preview when EPS is imported, and that is what will be projected. It is passable, but much better can be done! In this application, I have had best results using cut and paste or the Windows metafile format, both of which (as others have said) give scalable vector graphics. When quirks of Windows metafile arise (as they can do, especially when fonts differ between PCs), I have had good results with PNG for line art and JPG for other art. Mike -- Michael Prager, Ph.D. Southeast Fisheries Science Center NOAA Center for Coastal Fisheries and Habitat Research Beaufort, North Carolina 28516 ** Opinions expressed are personal, not official. No ** official endorsement of any product is made or implied. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] PowerPoint graph insertion
Yes: I have Tufte's monograph on my desk. (along with 4 statistics texts) Yes: I am not the biggest fan of PowerPoint. Yes: I am using R to generate charts, plots, trends, etc. I have to summarize them each week. When I consider how to organize this data my first thought is to generate an HTML file with links to the R-generated plots, which HTML file organizes the plots in the required order. However: * Each week we annotate one PowerPoint slide in the weekly presentation with action items -- we don't only use PP as a presentation tool. This is convenient, as then the action items resulting from particular data trends are associated in a single document with the plots of the data trends. * Other (non-R) users insert data into the weekly PP presentation: from other plotting software and images from various sources (microscope, SEM, TEM, etc.), which I cannot easily incorporate into a generated HTML file before-the-fact. * I'm not sure how to create an HTML file which allows one to page forward and backward through it easily, as with PowerPoint (a minor point: and there is probably a way to write HTML to respond to such) So: Can R insert plots into an existing PowerPoint presentation? (actually, I'd copy last week's presentation and then update with new plots) I'll guess that it cannot, as there probably is not a Microsoft supplied interface (ODBC or otherwise) with PowerPoint as there is with Excel. -Leif Kirschenbaum, Ph.D. Sr. Yield Integration Engineer (I'm a physicist) [EMAIL PROTECTED] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] PowerPoint graph insertion
On 9/9/05, Leif Kirschenbaum [EMAIL PROTECTED] wrote: Yes: I have Tufte's monograph on my desk. (along with 4 statistics texts) Yes: I am not the biggest fan of PowerPoint. Yes: I am using R to generate charts, plots, trends, etc. I have to summarize them each week. When I consider how to organize this data my first thought is to generate an HTML file with links to the R-generated plots, which HTML file organizes the plots in the required order. However: * Each week we annotate one PowerPoint slide in the weekly presentation with action items -- we don't only use PP as a presentation tool. This is convenient, as then the action items resulting from particular data trends are associated in a single document with the plots of the data trends. * Other (non-R) users insert data into the weekly PP presentation: from other plotting software and images from various sources (microscope, SEM, TEM, etc.), which I cannot easily incorporate into a generated HTML file before-the-fact. * I'm not sure how to create an HTML file which allows one to page forward and backward through it easily, as with PowerPoint (a minor point: and there is probably a way to write HTML to respond to such) So: Can R insert plots into an existing PowerPoint presentation? (actually, I'd copy last week's presentation and then update with new plots) I'll guess that it cannot, as there probably is not a Microsoft supplied interface (ODBC or otherwise) with PowerPoint as there is with Excel. You can do it in VBA or you can do it in R using the RDCOMClient or rcom packages, either of which provide an interface to Microsoft COM objects, in general (these are not specific to any particular application). I would first do it manually in PP with the macro recorder on so you can see what VBA code is generated by the recorder. Then you can use that as a base for your VBA code or if you like you can translate it to R using either of the above mentioned R packages. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html