Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>To expand a little on my comment, there is no real easy answer, but my suggestions:</p> <ol> <li><p>My first totally flexible choice would be to simply store the final raw data used in the plot(s) and a bit of R code for generating the plot(s). That way you could easily enough send the output to whatever device that suits your particular purpose. It would not be that arduous a task to set yourself up a couple of basic templates based on <code>png()</code>/<code>pdf()</code> that you could call upon.</p></li> <li><p>Use the <code>svg()</code> device. As noted by @gung, storing the output using <code>pdf()</code> , <code>svg()</code> , <code>cairo_ps()</code> or <code>cairo_pdf()</code> are your only real options for retaining scalable, vector images. I would tend to lean towards <code>svg()</code> rather than <code>pdf()</code> due to the greater editing options available using programs like Inkscape. It is also becoming a quite widely supported format for internet publication (see - <a href="http://caniuse.com/svg">http://caniuse.com/svg</a> )</p></li> <li><p>If on the other hand you're a latex user, most headaches seem to be solved by going straight to <code>pdf()</code> - you can usually import and convert pdf files using Inkscape or command line utilities like Imagemagick if you have to format shift.</p></li> <li><p>For Word/Powerpoint interaction, if you are running R on Windows, you can also export directly using <code>win.metafile()</code> which will give you scalable/component <code>emf</code> images which you can import into Word or Powerpoint directly. I have heard of people <a href="https://stat.ethz.ch/pipermail/r-help/2005-September/079413.html">running R through Wine or using intermediary steps</a> on Linux to get emf files out for later use. For Mac, there are <a href="http://rwiki.sciviews.org/doku.php?id=tips%3agraphics-misc%3aexport#if_you_really_insist_on_using_wmf_emf_format">roundabout pathways as well</a>.</p></li> </ol> <p>So, to summarise, in order of preference.</p> <ol> <li>Don't store images at all, store code to generate images</li> <li>Use svg/pdf and convert formats as required.</li> <li>Use a backup win.metafile export directly for those cases where you can't escape using Word/Powerpoint and are primarily going to be based on Windows systems.</li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload