官包功能,用于向演示文稿添加R图

Jaw*_*ria 3 plot powerpoint r ggplot2 officer

我正在使用officerR中的程序包将地块转移到演示文稿中。

可以使用ph_with_gg()函数来传输ggplot,但是传递普通R图的功能是什么?我在软件包中找不到任何此类功能。

这些是我所引用的一些资源:

军官CRAN包

PowerPoint演示文稿生成

您的帮助将不胜感激!

问候

Ste*_*oss 5

Save the plot you want to output as, say, a png file then use the ph_with_img function to place the image into your presentation.

军官的Powerpoint组件的在线帮助显示了如何执行此操作-请参阅您在帖子中已经提到的https://davidgohel.github.io/nzlie/articles/powerpoint.html

如果您不知道如何将图形另存为图像,请参见(例如)以下线程:如何将图形另存为磁盘上的图像