0

背景:

我通常使用ReporteRs 包来获得“一个”高质量的矢量化绘图作为单个 WORD 文件。下面介绍了用于执行此操作的通用 R 代码。基本上,我将绘图包装为一个函数,将其命名为“G”,然后让 ReporteRs 包将“G”转换为 word 文件。

问题:

我想知道设备布局什么时候是这样的:

m <- matrix( c( 1,0, 1,3, 2,3, 2,0 ), nrow=2, ncol=4 ); layout(m)(即 3 个地块)

是否仍然可以使用 ReporteRs 包将 3 个图转换为单个单词文件?

library('ReporteRs')

doc = docx()

doc = addPlot(doc, fun = G, vector.graphic = TRUE, width = 4.5, height = 4.5,  
par.properties = parCenter(), editable = T, fontname_serif = "Times New Roman", 
fontname_sans = "Times New Roman", fontname_mono = "Times New Roman", 
fontname_symbol = "Times New Roman")

writeDoc(doc, file = "plotname.docx")
4

0 回答 0