Re: [R] .eps files and powerpoint

2013-07-25 Thread Marc Schwartz
Hi Duncan, Based upon the subsequent exchange with Rich late yesterday, I could not replicate the problem that he was having with lattice (OSX versus Windows), so I don't believe that this is germane any longer. I also used trellis.device() just as an alternative to calling postscript()

Re: [R] .eps files and powerpoint

2013-07-25 Thread Richard M. Heiberger
your eps file appears as an icon in powerpoint 2010 and 2013 on windows 7 in my VM. the same file opens as a proper graph on powerpoint 2011 in Mac. On Wed, Jul 24, 2013 at 12:16 PM, Marc Schwartz marc_schwa...@me.comwrote: Hi Rich, Seems to work for me using Powerpoint in MS Office 2011 for

Re: [R] .eps files and powerpoint

2013-07-25 Thread Richard M. Heiberger
file2.eps opens as a graph in windows PP 2010 and as an icon in PP 2013. RPlot2.pptx https://www.dropbox.com/s/snm7cb9chrkcrff/RPlot2.pptx opens as a graph in both windows PP and in Mac PP. On Wed, Jul 24, 2013 at 2:39 PM, Marc Schwartz marc_schwa...@me.com wrote: Rich, I don't have direct

Re: [R] .eps files and powerpoint

2013-07-25 Thread Richard M. Heiberger
The Header and Prolog of both file.eps and file2.eps are the same. On Thu, Jul 25, 2013 at 9:56 AM, Richard M. Heiberger r...@temple.eduwrote: file2.eps opens as a graph in windows PP 2010 and as an icon in PP 2013. RPlot2.pptx https://www.dropbox.com/s/snm7cb9chrkcrff/RPlot2.pptx opens as

Re: [R] .eps files and powerpoint

2013-07-25 Thread Marc Schwartz
Rich, Any chance that you have access to a native Windows machine or to a colleague that does to try the files. I am wondering if there is any chance that there is something about running Office in Windows under a VM on OSX that might be involved in some manner. BTW, which VM (VMWare,

Re: [R] .eps files and powerpoint

2013-07-25 Thread Rmh
i have parallels 8 as the vm. i can try a native pc this afternoon. Sent from my iPhone On Jul 25, 2013, at 10:42, Marc Schwartz marc_schwa...@me.com wrote: Rich, Any chance that you have access to a native Windows machine or to a colleague that does to try the files. I am wondering

Re: [R] .eps files and powerpoint

2013-07-25 Thread Richard M. Heiberger
On Vista with Powerpoint 2007, file2.eps crashes powerpoint, Once file.eps displayed, several times it crashed powerpoint. My task is now to see if ghostscript can read a pdf or ps or eps and convert it to png at res=300. Do you know the incantation for that? Rich On Thu, Jul 25, 2013 at

Re: [R] .eps files and powerpoint

2013-07-25 Thread Peter Langfelder
On Thu, Jul 25, 2013 at 9:30 AM, Richard M. Heiberger r...@temple.edu wrote: On Vista with Powerpoint 2007, file2.eps crashes powerpoint, Once file.eps displayed, several times it crashed powerpoint. My task is now to see if ghostscript can read a pdf or ps or eps and convert it to png at

Re: [R] .eps files and powerpoint

2013-07-25 Thread Marc Schwartz
Rich, That's scary. Well, I could make a comment about Vista, but that would take us in a whole new direction... ;-) As far as GS, for an EPS file to a PNG, try something along the lines of: gs -dSAFER -dBATCH -dNOPAUSE -r300 -dEPSCrop -sDEVICE=png16m -sOutputFile=file.png file.eps That

Re: [R] .eps files and powerpoint

2013-07-25 Thread Richard M. Heiberger
perfect. since I really want to start with pdf or ps, these work on both Mac and Windows ## rmh for pdf gs -dSAFER -dBATCH -dNOPAUSE -r300 -sDEVICE=png16m -sOutputFile=testplot.png testplot.pdf ## rmh for ps gs -dSAFER -dBATCH -dNOPAUSE -r300 -dPSCrop -sDEVICE=png16m -sOutputFile=Living.png

Re: [R] .eps files and powerpoint

2013-07-25 Thread David Winsemius
On Jul 25, 2013, at 9:30 AM, Richard M. Heiberger wrote: On Vista with Powerpoint 2007, file2.eps crashes powerpoint, Once file.eps displayed, several times it crashed powerpoint. My task is now to see if ghostscript can read a pdf or ps or eps and convert it to png at res=300. Do you

Re: [R] .eps files and powerpoint

2013-07-24 Thread Patrick Connolly
On Tue, 23-Jul-2013 at 10:23PM -0400, Richard M. Heiberger wrote: | I have colleagues who use powerpoint. When I send my colleagues pdf files | or ps files, powerpoint | rejects them. Powerpoint does accept some eps files. | [...] | Does anyone know a workaround that will get vector graphics

Re: [R] .eps files and powerpoint

2013-07-24 Thread Richard M. Heiberger
png(png300.png, res=300, width=2880, height=1440) gives good behavior. Thank you. This will become my standard for export to powerpoint. postscript(file='file.eps', onefile=FALSE) produces eps files that powerpoint rejects, even though ghostview is satisfied. Rich On Wed, Jul 24, 2013 at

Re: [R] .eps files and powerpoint

2013-07-24 Thread Marc Schwartz
Rich, You are missing some options in the call to postscript() below. It needs to be: postscript(file = file.eps, width = x, height = y, horizontal = FALSE, onefile = FALSE, paper = special) The first line needs to have values for 'x' and 'y' for the width and height of the

Re: [R] .eps files and powerpoint

2013-07-24 Thread Richard M. Heiberger
Thanks Marc, the extra arguments to postscript still don't produce something that PowerPoint will accept. With your call, PP still displayed only the icon. PP did not generate its own png file. Since my immediate goal is the projection screen for a PowerPoint presentation, I will go directly to

Re: [R] .eps files and powerpoint

2013-07-24 Thread Marc Schwartz
Hi Rich, Seems to work for me using Powerpoint in MS Office 2011 for Mac. I used the following code: postscript(file = file.eps, height = 4, width = 4, horizontal = FALSE, onefile = FALSE, paper = special) plot(rnorm(20)) dev.off() Then I used the insert picture from file

Re: [R] .eps files and powerpoint

2013-07-24 Thread Richard M. Heiberger
Marc, very interesting. Your example works on Windows. This example doesn't work on windows postscript(file = file2.eps, height = 4, width = 4, + horizontal = FALSE, onefile = FALSE, paper = special) barchart(1:3) dev.off() Several examples, including the real one I was

Re: [R] .eps files and powerpoint

2013-07-24 Thread Marc Schwartz
Hi Rich, That's curious. I noted that you are using barchart() below which is lattice versus base graphics. Is there any difference in the result on Windows if you use barplot() instead? If so, perhaps there is something about lattice graphics in this context. Also, are you using Office 2008

Re: [R] .eps files and powerpoint

2013-07-24 Thread Rmh
office 2011 on mac, 2013 on windows. i see the same misbehavior in base and lattice. my standard simple test is plot(1:10) which is base. did you try the windows side yet? Rich Sent from my iPhone On Jul 24, 2013, at 13:22, Marc Schwartz marc_schwa...@me.com wrote: Hi Rich, That's

Re: [R] .eps files and powerpoint

2013-07-24 Thread Marc Schwartz
Rich, I don't have direct access to Windows and I don't run a VM on my Mac. I e-mailed two PPTX files created on my Mac (Office 2011) to a colleague who has Office 2010 on his Windows laptop. The first was the file on DropBox that I linked earlier, with the regular plot. The second is this

Re: [R] .eps files and powerpoint

2013-07-24 Thread Duncan Mackay
Hi Marc I sometimes had trouble with postscript and pdf files with lattice and I printed with trellis.device(device = pdf, ...) or trellis.device(device = postscript, ...) I wonder if this is the case here Duncan Duncan Mackay Department of Agronomy and Soil Science University of New

[R] .eps files and powerpoint

2013-07-23 Thread Richard M. Heiberger
I have colleagues who use powerpoint. When I send my colleagues pdf files or ps files, powerpoint rejects them. Powerpoint does accept some eps files. I have been able to use pdf2ps to convert some pdf files into ps files, and then manually edit the ps file to eps files (following the comments

Re: [R] .eps files and powerpoint

2013-07-23 Thread Pascal Oettli
Hello, I would avoid the use of vector files for presentation, as Powerpoint will display a rasterized version off the vectorized image (if I am not mistaken). I always directly use raster files, as png. For eps, I use the following command in R. postscript(file='file.eps', onefile=FALSE,