Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting plots from R to powerpoint

Tags:

r

I use "ggplot2" to create beautiful plots in R. I want to distribute them; I use "ReporteRs" get them into PowerPoint.

When I do this the formatting is somehow lost (no scale ability). To keep scaleability, I use the "svglite" package to save my plot as a ".svg" file.

Now; How do I get the ".svg" file into the PowerPoint?

like image 315
Soren Christensen Avatar asked Oct 20 '25 15:10

Soren Christensen


1 Answers

Just an update also with regard to support for SVG in Powerpoint: SVG is fully supported in Office 2019 as well as in the Office 365 versions of PowerPoint 2016.

Regarding rmarkdown/knitr - you can also use that to export to Powerpoint.

And there is also the option to use my export package, to export to Powerpoint using the correct scaling (specified width & height), as mentioned in my other answer.

Finally, there is also the possibility to export to SVG, and to use e.g. Inkscape to have it converted to EMF, which you can import in all versions of Powerpoint.

like image 187
Tom Wenseleers Avatar answered Oct 23 '25 04:10

Tom Wenseleers



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!