Re: [R] Exporting R graphics into Word without losing graph quality

2013-12-23 Thread sigtool
Waterloo Graphics is open-source and can be used from R. Graphics can be copied and pasted in vector format to Word on Windows or Mac. There is also an SVG file save option that produces output with easy-to-use object groupings for editing an Adobe Illustrator/Inkscape. (as well as

Re: [R] Exporting R graphics into Word without losing graph quality

2013-12-21 Thread Shane McMahon
Sorry I'm a little late to the party on this one, but I thought I'd throw in my solution. I usually produce my plots with the svg device. Ex: plot(1:100,(1:100)^2) svg(filename=example.svg,height=3.83,width=3.83,pointsize=10) plot(1:100,(1:100)^2,xlab=x,ylab=expression(x^2)) dev.off() Word

Re: [R] Exporting R graphics into Word without losing graph quality

2013-12-18 Thread Greg Snow
Another option to consider if your goal is to create a word file with 1 or more plots in it (possibly intermingled with text and other output) is to use the knitr or pander packages (or odfWeave or sweave or ...). This way you can create a script (or template file) that sets a couple of options

Re: [R] Exporting R graphics into Word without losing graph quality

2013-12-18 Thread Kevin Wright
Another nice thing about your solution is that circles look like circles, and not like diamonds (when viewed on screen). Thanks. Kevin Wright On Mon, Dec 16, 2013 at 8:02 PM, Steve Taylor steve.tay...@aut.ac.nzwrote: Unfortunately the win.metafile() device does not support semi-transparent

Re: [R] Exporting R graphics into Word without losing graph quality

2013-12-16 Thread David Carlson
-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Duncan Murdoch Sent: Sunday, December 15, 2013 5:24 PM To: david hamer; r-help@r-project.org Subject: Re: [R] Exporting R graphics into Word without losing graph quality On 13-12-15 6:00 PM, david hamer wrote: Hello, My x

Re: [R] Exporting R graphics into Word without losing graph quality

2013-12-16 Thread Marc Schwartz
-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Duncan Murdoch Sent: Sunday, December 15, 2013 5:24 PM To: david hamer; r-help@r-project.org Subject: Re: [R] Exporting R graphics into Word without losing graph quality On 13-12-15 6:00 PM, david hamer wrote: Hello, My x-y

Re: [R] Exporting R graphics into Word without losing graph quality

2013-12-16 Thread Steve Taylor
Unfortunately the win.metafile() device does not support semi-transparent colours, which I like using. In my experience, the best way to get R graphics into Word is to use compressed high-resolution tiff, like this: word.tif = function(filename=Word_Figure_%03d.tif, zoom=4, width=17,

Re: [R] Exporting R graphics into Word without losing graph quality

2013-12-16 Thread Steve Taylor
From: Duncan Murdoch... Don't use a bitmap format (png). I disagree. Each vector format comes with its own problems. Don't produce your graph in one format (screen display), then convert to another (png). Open the device in the format you want for the final file. Agreed. Use a vector

Re: [R] Exporting R graphics into Word without losing graph quality

2013-12-16 Thread david hamer
Thanks to everyone for the helpful suggestions. -- David. On Mon, Dec 16, 2013 at 7:23 PM, Steve Taylor steve.tay...@aut.ac.nzwrote: From: Duncan Murdoch... Don't use a bitmap format (png). I disagree. Each vector format comes with its own problems. Don't produce your graph in one

[R] Exporting R graphics into Word without losing graph quality

2013-12-15 Thread david hamer
Hello, My x-y scatterplot produces a very ragged best-fit line when imported into Word. * plot (data.file$x, data.file$y, type = p, las=1, pch=20,ylab = expression(Cover of Species y ~ (m^{2}~ha^{-1} )),xlab = expression(Cover of Species x ~ (m^{2}~ha^{-1})) )lines (

Re: [R] Exporting R graphics into Word without losing graph quality

2013-12-15 Thread Henrik Bengtsson
See ?png and argument 'pointsize'. You can increase that as you increase the dimensions of the output image. /Henrik On Sun, Dec 15, 2013 at 3:00 PM, david hamer j.david.ha...@gmail.com wrote: Hello, My x-y scatterplot produces a very ragged best-fit line when imported into Word. * plot

Re: [R] Exporting R graphics into Word without losing graph quality

2013-12-15 Thread Henrik Bengtsson
And possibly better, argument 'res', e.g. png(R.graph.png, width=1200, height = 700, res=144) plot(...) dev.off() Default corresponds to res=72. /Henrik On Sun, Dec 15, 2013 at 3:13 PM, Henrik Bengtsson h...@biostat.ucsf.edu wrote: See ?png and argument 'pointsize'. You can increase that as

Re: [R] Exporting R graphics into Word without losing graph quality

2013-12-15 Thread Duncan Murdoch
On 13-12-15 6:00 PM, david hamer wrote: Hello, My x-y scatterplot produces a very ragged best-fit line when imported into Word. Don't use a bitmap format (png). Don't produce your graph in one format (screen display), then convert to another (png). Open the device in the format you want

Re: [R] Exporting R graphics into Word without losing graph quality

2013-12-15 Thread Rolf Turner
On 16/12/13 12:23, Duncan Murdoch wrote: SNIP [After a number of other Don'ts] Don't trust the preview to tell you the quality of the graph, try printing the document. Word isn't quite as bad as it appears. Don't use Word. Fortune? cheers, Rolf Turner