Christoph Lehmann
2005-Mar-22 10:59 UTC
[R] r under linux: creating high quality bmp's for win users
Hi I produce graphics with R under linux, but my collaborators often use windows and cannot import eps pics e.g. in msword what is the standard way to get e.g. bmp's with the same quality as eps. going the way: creating eps, convert eps2bmp using 'convert' doesn't yield good enough bmp's thanks for a short hint cheers christoph
Gesmann, Markus
2005-Mar-22 11:05 UTC
[R] r under linux: creating high quality bmp's for win users
I suggest using png() in the first place, as MS Word can handle them as well. Regards Markus -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Christoph Lehmann Sent: 22 March 2005 10:59 To: r-help at stat.math.ethz.ch Subject: [Maybe spam] [R] r under linux: creating high quality bmp's for win users Hi I produce graphics with R under linux, but my collaborators often use windows and cannot import eps pics e.g. in msword what is the standard way to get e.g. bmp's with the same quality as eps. going the way: creating eps, convert eps2bmp using 'convert' doesn't yield good enough bmp's thanks for a short hint cheers christoph ______________________________________________ R-help at 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 ************LNSCNTMCS01*************************************************** The information in this E-Mail and in any attachments is CON...{{dropped}}
Prof Brian Ripley
2005-Mar-22 11:46 UTC
[R] r under linux: creating high quality bmp's for win users
On Tue, 22 Mar 2005, Christoph Lehmann wrote:> Hi > > I produce graphics with R under linux, but my collaborators often use windows > and cannot import eps pics e.g. in mswordAre they sure? One can import eps images into Word, but you need to print them on a postscript printer.> what is the standard way to get e.g. bmp's with the same quality as eps. > going the way: creating eps, convert eps2bmp using 'convert' doesn't yield > good enough bmp'sThe bitmap() device might do better, although both are really using gs. I would use png() and convert to bmp with ImageMagick's convert or otherwise. -- 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
Rau, Roland
2005-Mar-22 12:03 UTC
[R] r under linux: creating high quality bmp's for win users
Dear useRs,> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Jan T. Kim > Sent: Tuesday, March 22, 2005 1:18 PM > To: r-help at stat.math.ethz.ch > Subject: Re: [R] r under linux: creating high quality bmp's > for win users > > On Tue, Mar 22, 2005 at 11:59:25AM +0100, Christoph Lehmann wrote: > > > I produce graphics with R under linux, but my collaborators > often use > > windows and cannot import eps pics e.g. in msword > > > > P.P.S.: I'll never understand why Word & Co. don't support > encapsulated > postscript. With all that OLE and whatever, it can't be impossible to > do as LaTeX / xdvi does...?as far as I know, it is possible now. At least, it recently worked for me. I could include an eps-file which I produced with R into an ordinary MS word document. So it should be possible for them to include your eps-graphics. Best, Roland Here at work, we do have: - Microsoft Windows XP Professional Version 2002, Service Pack 2 and - Microsoft Office Word SP1 +++++ This mail has been sent through the MPI for Demographic Rese...{{dropped}}
Jan T. Kim
2005-Mar-22 12:18 UTC
[R] r under linux: creating high quality bmp's for win users
On Tue, Mar 22, 2005 at 11:59:25AM +0100, Christoph Lehmann wrote:> I produce graphics with R under linux, but my collaborators often use > windows and cannot import eps pics e.g. in msword > > what is the standard way to get e.g. bmp's with the same quality as eps. > going the way: creating eps, convert eps2bmp using 'convert' doesn't > yield good enough bmp's > > thanks for a short hintThe too short version: You can't get bmps of the same quality as encapsulated postscript because bmp is a raster format and postscript is a language that implements vector graphics. The somewhat more useful (hopefully) version: You can always use gs to produce a fixed resolution raster snapshot of your EPS file, e.g. gs -r600x600 -sDEVICE=bmp16m -sOutputFile=x.bmp -dNOPAUSE x.eps -c quit This allows you to control the resolution (-r option) and should allow you to produce any "quality" that may practically suffice, although this is a kludge. Best regards, Jan P.S.: I believe that the convert program just acts as a wrapper to gs anyway, with a resolution that is chosen to be useful for screen graphics rather than for printing. P.P.S.: I'll never understand why Word & Co. don't support encapsulated postscript. With all that OLE and whatever, it can't be impossible to do as LaTeX / xdvi does...? -- +- Jan T. Kim -------------------------------------------------------+ | *NEW* email: jtk at cmp.uea.ac.uk | | *NEW* WWW: http://www.cmp.uea.ac.uk/people/jtk | *-----=< hierarchical systems are for files, not for humans >=-----*
Christophe Pallier
2005-Mar-22 14:15 UTC
[R] r under linux: creating high quality bmp's for win users
Hello Christoph! In the past, I used an utility called "eps2wmf". It only works under Windows though (maybe under Linux with wine?). I believe it is available on the CTAN (Tex archives). The nice thing is that wmf files are not bitmap and scale well. Christophe Pallier Christoph Lehmann wrote:> Hi > > I produce graphics with R under linux, but my collaborators often use > windows and cannot import eps pics e.g. in msword > > what is the standard way to get e.g. bmp's with the same quality as > eps. going the way: creating eps, convert eps2bmp using 'convert' > doesn't yield good enough bmp's > > thanks for a short hint > > cheers > christoph > > ______________________________________________ > R-help at 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